Skip to content

Commit

Permalink
Should fix notifications "sticking" when closing already-removed ones
Browse files Browse the repository at this point in the history
  • Loading branch information
RedEnchilada committed Dec 20, 2014
1 parent 4f0e550 commit 4203e5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/Notification/removenotifications.php
Expand Up @@ -88,6 +88,7 @@ function handle($args)

foreach($notes as $note) {
$item = User_notification::staticGet('id', $note);
if (!$item) continue;
if($user->id != $item->user_id) {
$this->clientError(_('That notification isn\'t yours!'));
return false;
Expand Down

0 comments on commit 4203e5d

Please sign in to comment.