Handle the case of not being able to instanciate messages when deleting a whole list of them.
This commit is contained in:
parent
79c843434c
commit
263b581a58
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue