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

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