Skip to content

Commit 4203e5d

Browse files
author
RedEnchilada
committed
Should fix notifications "sticking" when closing already-removed ones
1 parent 4f0e550 commit 4203e5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/Notification/removenotifications.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ function handle($args)
8888

8989
foreach($notes as $note) {
9090
$item = User_notification::staticGet('id', $note);
91+
if (!$item) continue;
9192
if($user->id != $item->user_id) {
9293
$this->clientError(_('That notification isn\'t yours!'));
9394
return false;

0 commit comments

Comments
 (0)