fix: API call to services only returned first one

This commit is contained in:
Neil Lathwood 2016-10-25 12:42:19 +01:00 committed by GitHub
commit ef8aa9134a

View File

@ -1361,7 +1361,7 @@ function list_services()
$sql_param[1] = $_GET['type'];
}
$services = dbFetchRows("SELECT * FROM `services` WHERE `device_id` = ?".$devicewhere, $sql_param);
$services[] = dbFetchRows("SELECT * FROM `services` WHERE `device_id` = ?".$devicewhere, $sql_param);
}
$count = count($services);
$output = array(