diff --git a/api/profile.php b/api/profile.php index 2cc4bad..3fc28c5 100644 --- a/api/profile.php +++ b/api/profile.php @@ -162,8 +162,8 @@ class profile extends cora\api { // Get all of the relevant data $thermostat_ids = []; - foreach($group_thermostats as $thermostat) { - $thermostat_ids[] = $thermostat['thermostat_id']; + foreach($group_thermostats as $group_thermostat) { + $thermostat_ids[] = $group_thermostat['thermostat_id']; } /**