summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local')
-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