Fixed loading.... issue when no data returned

This commit is contained in:
laf
2015-04-12 11:47:21 +01:00
parent d2bb7d7137
commit 71f5f22387
9 changed files with 25 additions and 0 deletions

View File

@@ -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";