Fix notification's purge
This commit is contained in:
parent
bc27d95a5c
commit
ebde8b126e
|
@ -431,10 +431,10 @@ sub deleteNotification {
|
|||
|
||||
# Delete the notification (really)
|
||||
foreach (@data) {
|
||||
eval { $self->purge($_) };
|
||||
next if ($@);
|
||||
$self->lmLog( "Notification $_ was removed.", 'debug' );
|
||||
$count++;
|
||||
if ($self->purge($_)) {
|
||||
$self->lmLog( "Notification $_ was removed.", 'debug' );
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user