mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
do not show page browser when all search hits are listed
This commit is contained in:
parent
71a8118d5c
commit
2892c1e2fb
|
@ -383,11 +383,13 @@ if(isset($_GET["fullsearch"]) && $_GET["fullsearch"] && $settings->_enableFullSe
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!isset($_GET["pg"]) || strcasecmp($_GET["pg"], "all")) {
|
||||||
$totalPages = (int) (count($entries)/$limit);
|
$totalPages = (int) (count($entries)/$limit);
|
||||||
if(count($entries)%$limit)
|
if(count($entries)%$limit)
|
||||||
$totalPages++;
|
$totalPages++;
|
||||||
if (!isset($_GET["pg"]) || strcasecmp($_GET["pg"], "all"))
|
|
||||||
$entries = array_slice($entries, ($pageNumber-1)*$limit, $limit);
|
$entries = array_slice($entries, ($pageNumber-1)*$limit, $limit);
|
||||||
|
} else
|
||||||
|
$totalPages = 1;
|
||||||
// }}}
|
// }}}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user