]> git.mxchange.org Git - friendica.git/commitdiff
Test for the existence of the precise parsed url part in BoundariesPager
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 23 Feb 2020 01:19:42 +0000 (20:19 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 23 Feb 2020 01:19:42 +0000 (20:19 -0500)
- Address https://github.com/friendica/friendica/issues/8000#issuecomment-587138376

src/Content/BoundariesPager.php

index b8b7f67bbaaa54d9db0093112ca3f6eb761eec4a..8bbbde2b4764eed12362073f86d6895cee940647 100644 (file)
@@ -57,7 +57,7 @@ class BoundariesPager extends Pager
                $this->last_item_id = $last_item_id;
 
                $parsed = parse_url($this->getBaseQueryString());
-               if ($parsed) {
+               if (!empty($parsed['query'])) {
                        parse_str($parsed['query'], $queryParameters);
 
                        $this->first_page = !($queryParameters['since_id'] ?? null) && !($queryParameters['max_id'] ?? null);