From 0e1a79ec3f9572f8d36e9a2b793375025d64649a Mon Sep 17 00:00:00 2001 From: Laurent Giovannoni <laurent.giovannoni@maarch.org> Date: Wed, 25 May 2011 08:21:54 +0000 Subject: [PATCH] fix : bug #195 --- core/trunk/core/class/class_db.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/trunk/core/class/class_db.php b/core/trunk/core/class/class_db.php index 2fb5409b805..732440dd491 100644 --- a/core/trunk/core/class/class_db.php +++ b/core/trunk/core/class/class_db.php @@ -521,8 +521,8 @@ class dbquery extends functions // Connexion error if ($this->_sqlError == 1) { // Shows the connexion data (server, port, user, pass) - echo '- <b>' . _DB_CONNEXION_ERROR . '</b>'; if ($_SESSION['config']['debug'] == 'true') { + echo '- <b>' . _DB_CONNEXION_ERROR . '</b>'; echo ' -<br /><br />' . _DATABASE_SERVER . ' : ' . $this->_server . '<br/>' . _DB_PORT . ' : ' . $this->_port . '<br/>' . _DB_TYPE . ' : ' . $this->_databasetype @@ -530,6 +530,7 @@ class dbquery extends functions . _DB_USER . ' : ' . $this->_user . '<br/>' . _PASSWORD . ' : ' . $this->_password; } + header("HTTP/1.0 500 Internal Server Error"); exit(); } @@ -619,4 +620,4 @@ class dbquery extends functions } } -} \ No newline at end of file +} -- GitLab