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:42:34 -0300
commit45e96815a15b163a85da608125d91239ab9801a3 (patch)
tree5a9631bbd99615426c307c035cbb76de87fb064e /usr/local/www/pkg.php
parent5402c8fcdedfd9f9f3ca4eba2d3ed520a2d123ad (diff)
downloadpfsense-45e96815a15b163a85da608125d91239ab9801a3.zip
pfsense-45e96815a15b163a85da608125d91239ab9801a3.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