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:
@@ -27,6 +27,9 @@ if (isset($searchPhrase) && !empty($searchPhrase)) {
|
||||
|
||||
$count_sql = "SELECT COUNT(datetime) $sql";
|
||||
$total = dbFetchCell($count_sql,$param);
|
||||
if (empty($total)) {
|
||||
$total = 0;
|
||||
}
|
||||
|
||||
if (!isset($sort) || empty($sort)) {
|
||||
$sort = 'datetime DESC';
|
||||
|
Reference in New Issue
Block a user