Merge pull request #13825 from toddy15/undefined-array-key

Fix Undefined array key.
This commit is contained in:
Hypolite Petovan 2024-01-12 00:19:48 -05:00 committed by GitHub
commit 728130908e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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
);