Add check for parent item existence in Model\UserItem::setNotificationForUser

This commit is contained in:
Hypolite Petovan 2020-07-09 15:05:11 -04:00
parent d9b8a1fccd
commit 2db04b0c34

View 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;
}