1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-23 00:50:30 +01:00

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

PHPBB3-14893
This commit is contained in:
rxu 2016-12-06 23:42:49 +07:00
parent 129bfd5e62
commit fd95da909a

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']),