Test for the existence of the precise parsed url part in BoundariesPager

- Address https://github.com/friendica/friendica/issues/8000#issuecomment-587138376
This commit is contained in:
Hypolite Petovan 2020-02-22 20:19:42 -05:00
parent 357c0072bd
commit 18a5cc6916

View file

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