Add check for parent item existence in Model\UserItem::setNotificationForUser
This commit is contained in:
parent
d9b8a1fccd
commit
2db04b0c34
|
@ -75,7 +75,7 @@ class UserItem
|
||||||
private static function setNotificationForUser(array $item, int $uid)
|
private static function setNotificationForUser(array $item, int $uid)
|
||||||
{
|
{
|
||||||
$thread = Item::selectFirstThreadForUser($uid, ['ignored'], ['iid' => $item['parent'], 'deleted' => false]);
|
$thread = Item::selectFirstThreadForUser($uid, ['ignored'], ['iid' => $item['parent'], 'deleted' => false]);
|
||||||
if ($thread['ignored']) {
|
if (!empty($thread['ignored'])) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user