mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed loading.... issue when no data returned
This commit is contained in:
@@ -18,6 +18,9 @@ if (!isset($sort) || empty($sort)) {
|
||||
|
||||
$count_sql = "SELECT COUNT(`D`.`device_id`) $sql";
|
||||
$total = dbFetchCell($count_sql);
|
||||
if (empty($total)) {
|
||||
$total = 0;
|
||||
}
|
||||
|
||||
$sql .= " AND D.status ='1' AND D.ignore='0' AND D.disabled='0' ORDER BY $sort";
|
||||
|
||||
|
Reference in New Issue
Block a user