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:
@@ -39,6 +39,9 @@ if( !empty($_POST['group']) ) {
|
||||
$count_sql = "SELECT COUNT(`device_id`) $sql";
|
||||
|
||||
$total = dbFetchCell($count_sql,$param);
|
||||
if (empty($total)) {
|
||||
$total = 0;
|
||||
}
|
||||
|
||||
if (!isset($sort) || empty($sort)) {
|
||||
$sort = '`hostname` DESC';
|
||||
|
Reference in New Issue
Block a user