Skip to content
Permalink
Browse files

Handle the case when a friend approve message no longer exist.

  • Loading branch information...
perlDreamer committed Jul 10, 2012
1 parent 7a6ee77 commit a3f5b3ae6ce45cea6cb9bee6bfa2e1626d5a16f9
Showing with 5 additions and 1 deletion.
  1. +1 −0 docs/changelog/7.x.x.txt
  2. +4 −1 lib/WebGUI/Friends.pm
@@ -24,6 +24,7 @@
- fixed #12345: tickets in trash still show up
- fixed #12305: dbSlave breaks WebGUI when not able to connect
- fixed: Http Proxy assets with no URL to proxy cannot be deleted.
- fixed: Friends request messages that no longer exist throw a warning.

7.10.24
- fixed #12318: asset error causes asset manager to fail
@@ -96,7 +96,10 @@ sub approveAddRequest {
status => 'unread',
sentBy => $self->user->userId,
});
$inbox->getMessage($invite->{messageId})->setStatus('completed');
my $message = $inbox->getMessage($invite->{messageId});
if ($message) {
$message->setStatus('completed');
}
$db->deleteRow("friendInvitations", "inviteId", $inviteId);
}

0 comments on commit a3f5b3a

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