diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index e493353718..a7f3589a87 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -932,11 +932,15 @@ function msg_handler($errno, $msg_text, $errfile, $errline) $db->sql_close(); } - echo '' . $msg_title . ''; - echo '
phpBB LogoGeneral Error      


' . $msg_text . '
Please notify the board administrator or webmaster : ' . $config['board_contact'] . '

'; + if (!defined('HEADER_INC')) + { + echo '' . $msg_title . ''; + echo '
phpBB LogoGeneral Error      
'; + } + echo '

' . $msg_text . '
Please notify the board administrator or webmaster : ' . $config['board_contact'] . '

'; exit; break;