Add check for parent item existence in Model\UserItem::setNotificationForUser
This commit is contained in:
parent
d9b8a1fccd
commit
2db04b0c34
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue