mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Missing variable in services api call
fix: Missing variable in services api call
This commit is contained in:
committed by
Neil Lathwood
parent
aee05e858f
commit
8924e954c4
@ -1222,6 +1222,7 @@ function get_devices_by_group()
|
||||
$message = 'No devices found in group ' . $name;
|
||||
} else {
|
||||
$message = "Found $count in group $name";
|
||||
$status = 'ok';
|
||||
$code = 200;
|
||||
}
|
||||
}
|
||||
@ -1352,7 +1353,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(
|
||||
|
Reference in New Issue
Block a user