Merge pull request #853 from annando/master

Bugfix of the previous bugfix :)
This commit is contained in:
tobiasd 2013-12-11 23:23:30 -08:00
commit 68e0324c1b
3 changed files with 3 additions and 4 deletions

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;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB