diff --git a/src/Module/Conversation/Community.php b/src/Module/Conversation/Community.php index f00f633149..cdb4ddaa23 100644 --- a/src/Module/Conversation/Community.php +++ b/src/Module/Conversation/Community.php @@ -132,8 +132,8 @@ class Community extends Timeline $pager = new BoundariesPager( $this->l10n, $this->args->getQueryString(), - $items[0]['received'], - $items[count($items) - 1]['received'], + $items[array_key_first($items)]['received'], + $items[array_key_last($items)]['received'], $this->itemsPerPage );