diff options
Diffstat (limited to 'phpBB/includes/template.php')
-rw-r--r-- | phpBB/includes/template.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php index f8db087d48..b13dbaa99a 100644 --- a/phpBB/includes/template.php +++ b/phpBB/includes/template.php @@ -149,6 +149,14 @@ class template { global $user; + if (defined('IN_ERROR_HANDLER')) + { + if ((E_NOTICE & error_reporting()) == E_NOTICE) + { + error_reporting(error_reporting() ^ E_NOTICE); + } + } + if ($filename = $this->_tpl_load($handle)) { ($include_once) ? include_once($filename) : include($filename); |