summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-05-15 07:41:56 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-05-15 07:41:56 -0300
commite7a9ad78f53805412566f7c0c82b456d5f64e460 (patch)
tree2218d110157bba5de3a3b41de268ce9e52afb01e /usr/local/www/pkg.php
parent119213c49c24c06fd3fb13278b32274d086fa6a5 (diff)
downloadpfsense-e7a9ad78f53805412566f7c0c82b456d5f64e460.zip
pfsense-e7a9ad78f53805412566f7c0c82b456d5f64e460.tar.gz
Use correct variable to fix pagination
Diffstat (limited to 'usr/local/www/pkg.php')
-rwxr-xr-xusr/local/www/pkg.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/local/www/pkg.php b/usr/local/www/pkg.php
index 73cbffe..9173965 100755
--- a/usr/local/www/pkg.php
+++ b/usr/local/www/pkg.php
@@ -472,9 +472,8 @@ if ($pkg['tabs'] <> "") {
$startingat = $startdisplayingat - $display_maximum_rows;
if($startingat > -1) {
$final_footer .= "<a href='pkg.php?xml=" . $_REQUEST['xml'] . "&amp;startdisplayingat={$startingat}&amp;display_maximum_rows={$display_maximum_rows}'>";
- } else {
- if($startingat > 1)
- $final_footer .= "<a href='pkg.php?xml=" . $_REQUEST['xml'] . "&amp;startdisplayingat=0&amp;display_maximum_rows={$display_maximum_rows}'>";
+ } else if ($startdisplayingat > 1) {
+ $final_footer .= "<a href='pkg.php?xml=" . $_REQUEST['xml'] . "&amp;startdisplayingat=0&amp;display_maximum_rows={$display_maximum_rows}'>";
}
$final_footer .= "<font size='2'><< Previous page</font></a>";
if($tmppp + $display_maximum_rows > count($evaledvar))
OpenPOWER on IntegriCloud