From 27be69e3b3092def847d497c19bad7d4ad0a33d8 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Sat, 1 Nov 2014 18:10:25 +0100 Subject: [ticket/13271] Disable CC sender feature for anonymous users PHPBB3-13271 --- phpBB/phpbb/message/form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/phpbb') diff --git a/phpBB/phpbb/message/form.php b/phpBB/phpbb/message/form.php index 076b41dc07..21d4de0b4d 100644 --- a/phpBB/phpbb/message/form.php +++ b/phpBB/phpbb/message/form.php @@ -146,7 +146,7 @@ abstract class form WHERE user_id = ' . $this->user->data['user_id']; $this->db->sql_query($sql); - if ($this->cc_sender) + if ($this->cc_sender && $this->user->data['is_registered']) { $this->message->cc_sender(); } -- cgit v1.2.1