aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2016-12-11 20:28:21 +0100
committerTristan Darricau <github@nicofuma.fr>2016-12-11 20:28:21 +0100
commit08d169c10997a21fdb7df1ecb57e06729902d79b (patch)
tree6270d78d004e7eb819a7f832c3d4ebcc5d65de57 /phpBB
parente40afd8cd160a5b13cba08fa1725c50a27d0f022 (diff)
parent800411e514795d88bf947c81aa1617478043ef0a (diff)
downloadforums-08d169c10997a21fdb7df1ecb57e06729902d79b.tar
forums-08d169c10997a21fdb7df1ecb57e06729902d79b.tar.gz
forums-08d169c10997a21fdb7df1ecb57e06729902d79b.tar.bz2
forums-08d169c10997a21fdb7df1ecb57e06729902d79b.tar.xz
forums-08d169c10997a21fdb7df1ecb57e06729902d79b.zip
Merge pull request #4561 from rxu/ticket/14893
[ticket/14893] Fix undefined variable on reporting PM notification * rxu/ticket/14893: [ticket/14893] Fix undefined variable on reporting PM notification
Diffstat (limited to 'phpBB')
-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'))),