summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-05-15 12:57:23 +0545
committerRenato Botelho <garga@FreeBSD.org>2015-05-15 07:42:31 -0300
commit5402c8fcdedfd9f9f3ca4eba2d3ed520a2d123ad (patch)
treef0574630b3da222b1180f51409951a02330c922a /usr/local/www/pkg.php
parentaf6649969b769463b4ca3ba02d3927cde9acffa1 (diff)
downloadpfsense-5402c8fcdedfd9f9f3ca4eba2d3ed520a2d123ad.zip
pfsense-5402c8fcdedfd9f9f3ca4eba2d3ed520a2d123ad.tar.gz
Fix startingat var name typo in pkp.php
Even with this fix, the code does not make sense. The first test is: if ($startingat > -1) if it gets into the else, then $startingat must be negative. But the test in the "else" tests for >1 ??? Someone who knows what it really is supposed to do could fix it!
Diffstat (limited to 'usr/local/www/pkg.php')
-rwxr-xr-xusr/local/www/pkg.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/pkg.php b/usr/local/www/pkg.php
index aabd607..73cbffe 100755
--- a/usr/local/www/pkg.php
+++ b/usr/local/www/pkg.php
@@ -473,7 +473,7 @@ if ($pkg['tabs'] <> "") {
if($startingat > -1) {
$final_footer .= "<a href='pkg.php?xml=" . $_REQUEST['xml'] . "&amp;startdisplayingat={$startingat}&amp;display_maximum_rows={$display_maximum_rows}'>";
} else {
- if($startingnat > 1)
+ if($startingat > 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>";
OpenPOWER on IntegriCloud