Skip to content
Permalink
Browse files

Handle the case of not being able to instanciate messages when deleti…

…ng a whole list of them.
  • Loading branch information...
perlDreamer committed Jul 26, 2012
1 parent 79c8434 commit 263b581a582d0d6a476bf96bc61bd89d554116d7
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/WebGUI/Account/Inbox.pm
@@ -687,8 +687,9 @@ sub www_deleteMessages {

my @messages = $session->form->process("message","checkList");

foreach my $messageId (@messages) {
MESSAGE: foreach my $messageId (@messages) {
my $message = WebGUI::Inbox::Message->new($session, $messageId);
next MESSAGE unless $message;
$message->delete;
}

0 comments on commit 263b581

Please sign in to comment.
You can’t perform that action at this time.