Browse Source

Bugfix of the bugfix :)

pull/853/head
Michael Vogel 7 years ago
parent
commit
5d3ebcc2cf
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      include/text.php

+ 3
- 4
include/text.php View File

@ -281,10 +281,9 @@ function paginate_data(&$a, $count=null) {
if (($a->page_offset != "") AND !strstr($stripped, "&offset="))
$stripped .= "&offset=".urlencode($a->page_offset);
if (strpos($stripped, "?") === 0) {
$pos = strpos($stripped, "&");
$stripped = substr($stripped, 0, $pos)."?".substr($stripped, $pos + 1);
if (!strpos($stripped, "?")) {
if ($pos = strpos($stripped, "&"))
$stripped = substr($stripped, 0, $pos)."?".substr($stripped, $pos + 1);
}
$url = $a->get_baseurl() . '/' . $stripped;


Loading…
Cancel
Save