mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/16043] Check if not null before getting anything from the container
This is only happening when there is basicly an error during init of the container. PHPBB3-16043
This commit is contained in:
parent
6105260a8e
commit
465d0b1a4c
1 changed files with 1 additions and 1 deletions
|
@ -3395,7 +3395,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
|
||||||
$log_text .= '<br /><br />BACKTRACE<br />' . $backtrace;
|
$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;
|
$msg_text = $log_text;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue