]> git.mxchange.org Git - friendica.git/commitdiff
Add check for parent item existence in Model\UserItem::setNotificationForUser
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 9 Jul 2020 19:05:11 +0000 (15:05 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 9 Jul 2020 19:09:07 +0000 (15:09 -0400)
src/Model/UserItem.php

index 89dbafed82ecb54df5f7b39851c814cf9d534f39..afb13829df9bc18cd1a5ff2defe0705a93f99aec 100644 (file)
@@ -75,7 +75,7 @@ class UserItem
        private static function setNotificationForUser(array $item, int $uid)
        {
                $thread = Item::selectFirstThreadForUser($uid, ['ignored'], ['iid' => $item['parent'], 'deleted' => false]);
-               if ($thread['ignored']) {
+               if (!empty($thread['ignored'])) {
                        return;
                }