Skip to content

Commit 2c225f3

Browse files
committedApr 3, 2012
Do not attempt to change the status on an inbox message which doesn't exist. Fixes bug #12349.
1 parent 07bd545 commit 2c225f3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
 

‎docs/changelog/7.x.x.txt

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- fixed: Crud updateFromFormPost
1313
- fixed: encryptLogin and sslEnabled both need to be true
1414
- fixed: Cache's setByHTTP method returns content, even when it gets an error in the request. This gives the SC asset fits.
15+
- fixed #12349: Friends invitation error
1516

1617
7.10.24
1718
- fixed #12318: asset error causes asset manager to fail

‎lib/WebGUI/Friends.pm

+4-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,10 @@ sub rejectAddRequest {
320320
status => 'unread',
321321
});
322322
}
323-
$inbox->getMessage($invite->{messageId})->setStatus('completed');
323+
my $invitation = $inbox->getMessage($invite->{messageId});
324+
if ($invitation) {
325+
$invitation->setStatus('completed');
326+
}
324327
$self->session->db->deleteRow("friendInvitations", "inviteId", $inviteId);
325328
}
326329

0 commit comments

Comments
 (0)