diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 70d5a5386f..7c1bd27b2c 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -3399,7 +3399,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline) $log_text .= '

BACKTRACE
' . $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;