Merge pull request #852 from annando/master
Bugfix: Problem with page switching with the old pager solved
This commit is contained in:
commit
b5785c3f16
|
@ -282,7 +282,7 @@ 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 (!strstr($stripped, "?")) {
|
if (strpos($stripped, "?") === 0) {
|
||||||
$pos = strpos($stripped, "&");
|
$pos = strpos($stripped, "&");
|
||||||
$stripped = substr($stripped, 0, $pos)."?".substr($stripped, $pos + 1);
|
$stripped = substr($stripped, 0, $pos)."?".substr($stripped, $pos + 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user