Fix notification's purge

This commit is contained in:
Sandro Cazzaniga 2012-08-31 10:06:48 +00:00
parent bc27d95a5c
commit ebde8b126e

View File

@ -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++;
}
}
}
}