aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2013-01-28 22:26:20 +0530
committerDhruv <dhruv.goel92@gmail.com>2013-01-30 21:46:15 +0530
commit36b7d7560e55ee570a2e2f5991982be6c8e66487 (patch)
treec7de4e080e9f4a65b31ec5ea41334ac6beb27a57 /phpBB
parentba5d84ba1d8bb7e341dc5983efddb31afde51e71 (diff)
downloadforums-36b7d7560e55ee570a2e2f5991982be6c8e66487.tar
forums-36b7d7560e55ee570a2e2f5991982be6c8e66487.tar.gz
forums-36b7d7560e55ee570a2e2f5991982be6c8e66487.tar.bz2
forums-36b7d7560e55ee570a2e2f5991982be6c8e66487.tar.xz
forums-36b7d7560e55ee570a2e2f5991982be6c8e66487.zip
[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
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/ucp/ucp_pm_compose.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php
index d1786dd9ba..8e82188aff 100644
--- a/phpBB/includes/ucp/ucp_pm_compose.php
+++ b/phpBB/includes/ucp/ucp_pm_compose.php
@@ -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';
}