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
committerPhil Davis <phil.davis@inf.org>2015-05-15 12:57:23 +0545
commita5d6bf8019b138e5ec671a707c5ca1f0b60d0b96 (patch)
treeb98453f590b754d1ec0c657eada65e91c7359880 /usr/local/www/pkg.php
parentc8f1c7bd70cd156f23a59400e5c738ef8bf5281b (diff)
downloadpfsense-a5d6bf8019b138e5ec671a707c5ca1f0b60d0b96.zip
pfsense-a5d6bf8019b138e5ec671a707c5ca1f0b60d0b96.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