From de0a62b761ec93dd01596848ed1efb8b8f174305 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Tue, 8 Jul 2003 08:52:29 +0000 Subject: [PATCH] Send headers before exiting because of missing MySQL extension. --- ChangeLog | 4 ++++ libraries/common.lib.php3 | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6fac46e93..396e964c2 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-07-08 Alexander M. Turek + * libraries/common.lib.php3: Send headers before exiting because of missing + MySQL extension. + 2003-07-07 Alexander M. Turek * libraries/common.lib.php3, libraries/config_import.lib.php3: Backwards compatibility. diff --git a/libraries/common.lib.php3 b/libraries/common.lib.php3 index ac4270e59..b57f3dbd9 100644 --- a/libraries/common.lib.php3 +++ b/libraries/common.lib.php3 @@ -262,6 +262,9 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold} // check whether mysql is available if (!@function_exists('mysql_connect')) { + if (empty($is_header_sent)) { + include('./libraries/header_http.inc.php3'); + } echo $strCantLoadMySQL . '
' . "\n" . '' . $GLOBALS['strDocu'] . '' . "\n"; exit();