1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-22 00:21:02 +01:00

Merge pull request #4562 from rxu/ticket/14893-3.2.x

[ticket/14893] Fix undefined variable on reporting PM notification

* rxu/ticket/14893-3.2.x:
  [ticket/14893] Fix undefined variable on reporting PM notification
This commit is contained in:
Tristan Darricau 2016-12-11 20:26:43 +01:00
commit 3ed1104467
No known key found for this signature in database
GPG Key ID: 817043C2E29DB881

View File

@ -142,7 +142,7 @@ class report_pm extends \phpbb\notification\type\pm
*/
public function get_email_template_variables()
{
$user_data = $this->user_loader->get_username($this->get_data('reporter_id'), 'no_profile');
$user_data = $this->user_loader->get_user($this->get_data('reporter_id'));
return array(
'AUTHOR_NAME' => htmlspecialchars_decode($user_data['username']),