diff options
author | Marc Alexander <admin@m-a-styles.de> | 2019-10-20 11:22:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-20 11:22:02 +0200 |
commit | a671eaf25dcbc72f5e7ea1ffc852a59791e1de0b (patch) | |
tree | 12eae7fd06e0024e407ead7c6bce998000bba72e | |
parent | 6105260a8e9d329fbdb77d844ac4b7e3188a00f9 (diff) | |
parent | 465d0b1a4c665468e188381f6e83376bfde9422a (diff) | |
download | forums-a671eaf25dcbc72f5e7ea1ffc852a59791e1de0b.tar forums-a671eaf25dcbc72f5e7ea1ffc852a59791e1de0b.tar.gz forums-a671eaf25dcbc72f5e7ea1ffc852a59791e1de0b.tar.bz2 forums-a671eaf25dcbc72f5e7ea1ffc852a59791e1de0b.tar.xz forums-a671eaf25dcbc72f5e7ea1ffc852a59791e1de0b.zip |
Merge pull request #5714 from marc1706/ticket/16043
[ticket/16043] Check if not null before getting anything from the container
-rw-r--r-- | phpBB/includes/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index e1f6fa3d1b..c2f173b345 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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; |