check if $_GET['pg'] is set

This commit is contained in:
Uwe Steinmann 2015-12-14 12:53:32 +01:00
parent 5f85b2290a
commit ff447ba31f

View File

@ -385,7 +385,7 @@ if(isset($_GET["fullsearch"]) && $_GET["fullsearch"]) {
$totalPages = (int) (count($entries)/$limit);
if(count($entries)%$limit)
$totalPages++;
if (strcasecmp($_GET["pg"], "all"))
if (!isset($_GET["pg"]) || strcasecmp($_GET["pg"], "all"))
$entries = array_slice($entries, ($pageNumber-1)*$limit, $limit);
// }}}
}