Browse Source

fix pagination link condition

sqliteway
ghost 2 years ago
parent
commit
a3bdccddd6
  1. 2
      public/search.php

2
public/search.php

@ -190,7 +190,7 @@ if (!empty($q)) {
<a href="<?php echo $result->url ?>"><?php echo $result->url ?></a> <a href="<?php echo $result->url ?>"><?php echo $result->url ?></a>
</div> </div>
<?php } ?> <?php } ?>
<?php if ($p * WEBSITE_PAGINATION_SEARCH_RESULTS_LIMIT < $resultsTotal) { ?> <?php if ($p * WEBSITE_PAGINATION_SEARCH_RESULTS_LIMIT <= $resultsTotal) { ?>
<div> <div>
<a href="<?php echo WEBSITE_DOMAIN; ?>/search.php?q=<?php echo urlencode(htmlentities($q)) ?>&p=<?php echo $p + 1 ?>"><?php echo _('Next page') ?></a> <a href="<?php echo WEBSITE_DOMAIN; ?>/search.php?q=<?php echo urlencode(htmlentities($q)) ?>&p=<?php echo $p + 1 ?>"><?php echo _('Next page') ?></a>
</div> </div>

Loading…
Cancel
Save