From 02b64a24e318dbd6e8e49f35fa8bef010a9d68a1 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 30 Mar 2003 14:39:48 +0000 Subject: [PATCH] Don't output error page header when header already sent git-svn-id: file:///svn/phpbb/trunk@3756 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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;