replaced return; with return undef;

This commit is contained in:
JT Smith 2008-01-24 21:58:15 +00:00
parent ffa90c5fbd
commit fa09c41598
113 changed files with 287 additions and 286 deletions

View file

@ -72,10 +72,10 @@ sub addPrivateMessage {
my $userId = $messageData->{userId};
my $sentBy = $messageData->{sentBy} || $self->session->user->userId;
return unless $userId;
return undef unless $userId;
my $u = WebGUI::User->new($self->session,$userId);
return unless ($isReply || $u->acceptsPrivateMessages($sentBy));
return undef unless ($isReply || $u->acceptsPrivateMessages($sentBy));
return $self->addMessage($messageData);
}