fix calculation of totalPages

This commit is contained in:
Uwe Steinmann 2015-03-20 07:42:23 +01:00
parent 4ae52e42c8
commit d7d63ae129

View File

@ -406,7 +406,7 @@ if(isset($_GET["fullsearch"]) && $_GET["fullsearch"]) {
}
}
}
$totalPages = count($entries)/$limit;
$totalPages = (int) (count($entries)/$limit);
if(count($entries)%$limit)
$totalPages++;
if($limit > 0)