mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/14893] Fix undefined variable on reporting PM notification
PHPBB3-14893
This commit is contained in:
parent
3322117c38
commit
800411e514
1 changed files with 2 additions and 0 deletions
|
@ -141,6 +141,8 @@ class report_pm extends \phpbb\notification\type\pm
|
||||||
*/
|
*/
|
||||||
public function get_email_template_variables()
|
public function get_email_template_variables()
|
||||||
{
|
{
|
||||||
|
$user_data = $this->user_loader->get_user($this->get_data('reporter_id'));
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'AUTHOR_NAME' => htmlspecialchars_decode($user_data['username']),
|
'AUTHOR_NAME' => htmlspecialchars_decode($user_data['username']),
|
||||||
'SUBJECT' => htmlspecialchars_decode(censor_text($this->get_data('message_subject'))),
|
'SUBJECT' => htmlspecialchars_decode(censor_text($this->get_data('message_subject'))),
|
||||||
|
|
Loading…
Add table
Reference in a new issue