1
0
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:
Dhruv 2013-01-28 22:26:20 +05:30
parent ba5d84ba1d
commit 36b7d7560e

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';
}