From 5cd5fa84037bf7832bf392b3fc9b259e5fe14979 Mon Sep 17 00:00:00 2001 From: "Dr. Tobias Quathamer" Date: Thu, 11 Jan 2024 23:38:29 +0100 Subject: [PATCH] Fix Undefined array key. - Address https://github.com/friendica/friendica/issues/13761#issuecomment-1878806230 --- src/Module/Conversation/Community.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 );