forked from friendica/friendica
Merge pull request #15507 from Raroun/fix-channel-pagination
Fix pagination by using array_key_first/last in Channel and Network module
This commit is contained in:
commit
b520b0af27
2 changed files with 4 additions and 4 deletions
|
|
@ -131,8 +131,8 @@ class Channel extends Timeline
|
|||
$pager = new BoundariesPager(
|
||||
$this->l10n,
|
||||
$this->args->getQueryString(),
|
||||
$items[0][$order],
|
||||
$items[count($items) - 1][$order],
|
||||
$items[array_key_first($items)][$order],
|
||||
$items[array_key_last($items)][$order],
|
||||
$this->itemsPerPage
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -307,8 +307,8 @@ class Network extends Timeline
|
|||
$pager = new BoundariesPager(
|
||||
$this->l10n,
|
||||
$this->args->getQueryString(),
|
||||
$items[0][$this->order] ?? null,
|
||||
$items[count($items) - 1][$this->order] ?? null,
|
||||
$items[array_key_first($items)][$this->order] ?? null,
|
||||
$items[array_key_last($items)][$this->order] ?? null,
|
||||
$this->itemsPerPage
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue