]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Conversation.php
Unified BBCode conversion, improved proxy functionality
[friendica.git] / src / Content / Conversation.php
index b645ecf4b2e5d89312adaa1fb682d43ea5dc01f0..6cad2b9805ba6acbcdb1d7c5f26e31932fa3a93c 100644 (file)
@@ -589,6 +589,10 @@ class Conversation
         */
        public function getThreadList(array $items, string $mode, bool $preview, bool $pagedrop, string $formSecurityToken): array
        {
+               if (!$items) {
+                       return [];
+               }
+
                if (in_array($mode, [self::MODE_FILED, self::MODE_SEARCH, self::MODE_CONTACT_POSTS])) {
                        $threads = $this->getContextLessThreadList($items, $mode, $preview, $pagedrop, $formSecurityToken);
                } else {