]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Conversation.php
Remove unused variable trheadids from Content\Conversation
[friendica.git] / src / Content / Conversation.php
index b645ecf4b2e5d89312adaa1fb682d43ea5dc01f0..710422ee762cc162e411b8dd496a4c8e751fb2c3 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 {
@@ -1377,8 +1381,6 @@ class Conversation
                                continue;
                        }
 
-                       $threadsid++;
-
                        // prevent private email from leaking.
                        if ($item['network'] === Protocol::MAIL && $this->session->getLocalUserId() != $item['uid']) {
                                continue;