mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
check if $_GET['pg'] is set
This commit is contained in:
parent
5f85b2290a
commit
ff447ba31f
|
@ -385,7 +385,7 @@ if(isset($_GET["fullsearch"]) && $_GET["fullsearch"]) {
|
||||||
$totalPages = (int) (count($entries)/$limit);
|
$totalPages = (int) (count($entries)/$limit);
|
||||||
if(count($entries)%$limit)
|
if(count($entries)%$limit)
|
||||||
$totalPages++;
|
$totalPages++;
|
||||||
if (strcasecmp($_GET["pg"], "all"))
|
if (!isset($_GET["pg"]) || strcasecmp($_GET["pg"], "all"))
|
||||||
$entries = array_slice($entries, ($pageNumber-1)*$limit, $limit);
|
$entries = array_slice($entries, ($pageNumber-1)*$limit, $limit);
|
||||||
// }}}
|
// }}}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user