Bugfix of the bugfix :)

This commit is contained in:
Michael Vogel 2013-12-10 21:16:13 +01:00
parent d487cb2078
commit 5d3ebcc2cf

View file

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