diff --git a/html/includes/table/storage.inc.php b/html/includes/table/storage.inc.php index 8d7fd548df..a912ba1d2e 100644 --- a/html/includes/table/storage.inc.php +++ b/html/includes/table/storage.inc.php @@ -20,9 +20,9 @@ if (isset($searchPhrase) && !empty($searchPhrase)) { $count_sql = "SELECT COUNT(`storage_id`) $sql"; -$total = dbFetchCell($count_sql,$param); -if (empty($total)) { - $total = 0; +$count = dbFetchCell($count_sql,$param); +if (empty($count)) { + $count = 0; } if (!isset($sort) || empty($sort)) { @@ -87,5 +87,5 @@ foreach (dbFetchRows($sql,$param) as $drive) { } # endif graphs } -$output = array('current'=>$current,'rowCount'=>$rowCount,'rows'=>$response,'total'=>$total); +$output = array('current'=>$current,'rowCount'=>$rowCount,'rows'=>$response,'total'=>$count); echo _json_encode($output);