summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/pkgfuncs.inc.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index b42df4c9..0c96a0ba 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -639,12 +639,6 @@ function pkg_search_page($SID="", $dbh=NULL) {
// figure out the results to use
$first = $_GET['O'] + 1;
- if (($_GET['PP'] + $_GET['O']) > $total) {
- $last = $total;
- } else {
- $last = $_GET['PP'] + $_GET['O'];
- }
-
# calculation of pagination links
$per_page = ($_GET['PP'] > 0) ? $_GET['PP'] : 50;
$current = ceil($first / $per_page);