aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2016-12-06 23:35:04 +0700
committerrxu <rxu@mail.ru>2016-12-07 00:40:21 +0700
commit800411e514795d88bf947c81aa1617478043ef0a (patch)
treef3833dfcb87a638d9f3598130257a7d58f75c620
parent3322117c3863c443ca1b79d25541bde4c662c0ed (diff)
downloadforums-800411e514795d88bf947c81aa1617478043ef0a.tar
forums-800411e514795d88bf947c81aa1617478043ef0a.tar.gz
forums-800411e514795d88bf947c81aa1617478043ef0a.tar.bz2
forums-800411e514795d88bf947c81aa1617478043ef0a.tar.xz
forums-800411e514795d88bf947c81aa1617478043ef0a.zip
[ticket/14893] Fix undefined variable on reporting PM notification
PHPBB3-14893
-rw-r--r--phpBB/phpbb/notification/type/report_pm.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/phpbb/notification/type/report_pm.php b/phpBB/phpbb/notification/type/report_pm.php
index cc32984ac6..fc39623c5c 100644
--- a/phpBB/phpbb/notification/type/report_pm.php
+++ b/phpBB/phpbb/notification/type/report_pm.php
@@ -141,6 +141,8 @@ class report_pm extends \phpbb\notification\type\pm
*/
public function get_email_template_variables()
{
+ $user_data = $this->user_loader->get_user($this->get_data('reporter_id'));
+
return array(
'AUTHOR_NAME' => htmlspecialchars_decode($user_data['username']),
'SUBJECT' => htmlspecialchars_decode(censor_text($this->get_data('message_subject'))),