From 068f8eed25aeef7520ba93addd012ed50dfa3acc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Col=C3=B3n?= Date: Thu, 1 Jul 2021 16:34:38 -0400 Subject: [PATCH] [ticket/16808] Make sure we have a container before using it PHPBB3-16808 --- phpBB/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index b08fb669f4..130cba10d3 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2996,7 +2996,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline) // Check the error reporting level and return if the error level does not match // If DEBUG is defined the default level is E_ALL - if (($errno & ($phpbb_container->getParameter('debug.show_errors') ? E_ALL : error_reporting())) == 0) + if (($errno & ($phpbb_container != null && $phpbb_container->getParameter('debug.show_errors') ? E_ALL : error_reporting())) == 0) { return; }