From: Dr. Tobias Quathamer Date: Thu, 11 Jan 2024 22:38:29 +0000 (+0100) Subject: Fix Undefined array key. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5cd5fa84037bf7832bf392b3fc9b259e5fe14979;p=friendica.git Fix Undefined array key. - Address https://github.com/friendica/friendica/issues/13761#issuecomment-1878806230 --- 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 );