diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-05-15 07:41:56 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-05-15 07:42:34 -0300 |
commit | 45e96815a15b163a85da608125d91239ab9801a3 (patch) | |
tree | 5a9631bbd99615426c307c035cbb76de87fb064e /usr/local/www/pkg.php | |
parent | 5402c8fcdedfd9f9f3ca4eba2d3ed520a2d123ad (diff) | |
download | pfsense-45e96815a15b163a85da608125d91239ab9801a3.zip pfsense-45e96815a15b163a85da608125d91239ab9801a3.tar.gz |
Use correct variable to fix pagination
Diffstat (limited to 'usr/local/www/pkg.php')
-rwxr-xr-x | usr/local/www/pkg.php | 5 |
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'] . "&startdisplayingat={$startingat}&display_maximum_rows={$display_maximum_rows}'>"; - } else { - if($startingat > 1) - $final_footer .= "<a href='pkg.php?xml=" . $_REQUEST['xml'] . "&startdisplayingat=0&display_maximum_rows={$display_maximum_rows}'>"; + } else if ($startdisplayingat > 1) { + $final_footer .= "<a href='pkg.php?xml=" . $_REQUEST['xml'] . "&startdisplayingat=0&display_maximum_rows={$display_maximum_rows}'>"; } $final_footer .= "<font size='2'><< Previous page</font></a>"; if($tmppp + $display_maximum_rows > count($evaledvar)) |