Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 263b581
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/WebGUI/Account/Inbox.pm
Expand Up @@ -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;
}

Expand Down

0 comments on commit 263b581

Please sign in to comment.