From eca9431909aaaa69bafb878a54043b61d52769e9 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 10 Dec 2013 15:45:26 +0100 Subject: [PATCH] Bugfix: Problem with page switching with the old pager solved --- include/text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/text.php b/include/text.php index e223071292..7908ca9f22 100644 --- a/include/text.php +++ b/include/text.php @@ -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); } -- 2.39.5