mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +01:00
[ticket/11233] prohibit selecting anonymous user as a PM recipient
While composing pm, it should not be allowed to add anonymous user as a PM recipient PHPBB3-11233
This commit is contained in:
parent
ba5d84ba1d
commit
36b7d7560e
@ -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';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user