X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FConversation.php;h=6cad2b9805ba6acbcdb1d7c5f26e31932fa3a93c;hb=8bb33dccd1d945c849c7006ee56a73fc9404323c;hp=b645ecf4b2e5d89312adaa1fb682d43ea5dc01f0;hpb=706444bdb22b57f18c284044bdbdaeb7610990fe;p=friendica.git diff --git a/src/Content/Conversation.php b/src/Content/Conversation.php index b645ecf4b2..6cad2b9805 100644 --- a/src/Content/Conversation.php +++ b/src/Content/Conversation.php @@ -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 {