]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: Problem with page switching with the old pager solved
authorMichael Vogel <icarus@dabo.de>
Tue, 10 Dec 2013 14:45:26 +0000 (15:45 +0100)
committerMichael Vogel <icarus@dabo.de>
Tue, 10 Dec 2013 14:45:26 +0000 (15:45 +0100)
include/text.php

index e223071292208a52c71e23af8902858df466ffca..7908ca9f225ce7a105d4b5bf0a393f1aef3da3e0 100644 (file)
@@ -282,7 +282,7 @@ function paginate_data(&$a, $count=null) {
        if (($a->page_offset != "") AND !strstr($stripped, "&offset="))
                $stripped .= "&offset=".urlencode($a->page_offset);
 
-       if (!strstr($stripped, "?")) {
+       if (strpos($stripped, "?") === 0) {
                $pos = strpos($stripped, "&");
                $stripped = substr($stripped, 0, $pos)."?".substr($stripped, $pos + 1);
        }