Merge remote-tracking branch 'dhruvgoel92/ticket/11233' into develop-olympus

* dhruvgoel92/ticket/11233:
  [ticket/11233] prohibit selecting anonymous user as a PM recipient
This commit is contained in:
Andreas Fischer 2013-01-31 00:32:20 +01:00
commit a0b141b673

View file

@ -359,7 +359,7 @@ function compose_pm($id, $mode, $action, $user_folders = array())
$message_attachment = 0;
$message_text = $message_subject = '';
if ($to_user_id && $action == 'post')
if ($to_user_id && $to_user_id != ANONYMOUS && $action == 'post')
{
$address_list['u'][$to_user_id] = 'to';
}