Skip to content

Commit

Permalink
Do not attempt to change the status on an inbox message which doesn't…
Browse files Browse the repository at this point in the history
… exist. Fixes bug #12349.
  • Loading branch information
perlDreamer committed Apr 3, 2012
1 parent 07bd545 commit 2c225f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog/7.x.x.txt
Expand Up @@ -12,6 +12,7 @@
- fixed: Crud updateFromFormPost
- fixed: encryptLogin and sslEnabled both need to be true
- fixed: Cache's setByHTTP method returns content, even when it gets an error in the request. This gives the SC asset fits.
- fixed #12349: Friends invitation error

7.10.24
- fixed #12318: asset error causes asset manager to fail
Expand Down
5 changes: 4 additions & 1 deletion lib/WebGUI/Friends.pm
Expand Up @@ -320,7 +320,10 @@ sub rejectAddRequest {
status => 'unread',
});
}
$inbox->getMessage($invite->{messageId})->setStatus('completed');
my $invitation = $inbox->getMessage($invite->{messageId});
if ($invitation) {
$invitation->setStatus('completed');
}
$self->session->db->deleteRow("friendInvitations", "inviteId", $inviteId);
}

Expand Down

0 comments on commit 2c225f3

Please sign in to comment.