[ticket/16559] Ensure event variables are defined in mcp_queue

PHPBB3-16559
This commit is contained in:
Marc Alexander 2020-08-02 13:55:06 +02:00
parent 93f3323074
commit fa636e35e0
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -156,6 +156,7 @@ class mcp_queue
$post_id = $request->variable('p', 0);
$topic_id = $request->variable('t', 0);
$topic_info = [];
/* @var $phpbb_notifications \phpbb\notification\manager */
$phpbb_notifications = $phpbb_container->get('notification_manager');
@ -1433,6 +1434,8 @@ class mcp_queue
}
}
$disapprove_reason_lang = $disapprove_reason_lang ?? '';
/**
* Perform additional actions during post(s) disapproval
*