]> git.mxchange.org Git - friendica.git/commitdiff
Fix Undefined array key.
authorDr. Tobias Quathamer <toddy@debian.org>
Thu, 11 Jan 2024 22:38:29 +0000 (23:38 +0100)
committerDr. Tobias Quathamer <toddy@debian.org>
Thu, 11 Jan 2024 22:38:29 +0000 (23:38 +0100)
- Address https://github.com/friendica/friendica/issues/13761#issuecomment-1878806230

src/Module/Conversation/Community.php

index f00f63314975fea2e61eeeeefa5af0535c67e91a..cdb4ddaa2362dad00e0e19653c8e1fcb52a76d80 100644 (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
                );