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

Merge pull request #5714 from marc1706/ticket/16043

[ticket/16043] Check if not null before getting anything from the container
This commit is contained in:
Marc Alexander 2019-10-20 11:22:02 +02:00 committed by GitHub
commit a671eaf25d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3395,7 +3395,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;