fix: Increased speed of loading syslog pages. (#6433)

* Increased speed of loading syslog pages.
I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.

* moved schema 186->189
This commit is contained in:
Tim Stallard
2017-05-03 22:41:55 +01:00
committed by Neil Lathwood
parent 6c555c6fb5
commit 6b2ae00e27
4 changed files with 4 additions and 1 deletions

View File

@@ -42,7 +42,7 @@ if ($_SESSION['userlevel'] >= '5') {
$param = array_merge(array($_SESSION['user_id']), $param);
}
$count_sql = "SELECT COUNT(timestamp) $sql";
$count_sql = "SELECT COUNT(*) $sql";
$total = dbFetchCell($count_sql, $param);
if (empty($total)) {
$total = 0;