mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/17176] Fix our misuse of trigger_error() to work again
PHPBB3-17176
This commit is contained in:
parent
45cefd4433
commit
384405d8e0
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class error_handler extends ErrorHandler
|
||||||
*/
|
*/
|
||||||
public function handleError(int $type, string $message, string $file, int $line): bool
|
public function handleError(int $type, string $message, string $file, int $line): bool
|
||||||
{
|
{
|
||||||
if (!$this->debug)
|
if (!$this->debug || $type === E_USER_WARNING || $type === E_USER_NOTICE)
|
||||||
{
|
{
|
||||||
$handler = defined('PHPBB_MSG_HANDLER') ? PHPBB_MSG_HANDLER : 'msg_handler';
|
$handler = defined('PHPBB_MSG_HANDLER') ? PHPBB_MSG_HANDLER : 'msg_handler';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue