1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-05 16:33:34 +02:00

Merge pull request #5582 from paul999/ticket/16043

Make sure $phpbb_container is not null before trying to get anything …
This commit is contained in:
Marc Alexander 2019-06-19 07:35:43 +02:00 committed by GitHub
commit 6941b3934d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3399,7 +3399,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
$log_text .= '<br /><br />BACKTRACE<br />' . $backtrace;
}
if (defined('IN_INSTALL') || $phpbb_container->getParameter('debug.show_errors') || isset($auth) && $auth->acl_get('a_'))
if (defined('IN_INSTALL') || ($phpbb_container != null && $phpbb_container->getParameter('debug.show_errors')) || isset($auth) && $auth->acl_get('a_'))
{
$msg_text = $log_text;