Skip to content
Snippets Groups Projects
Commit b55146ae authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

fix : bug #195

parent 0e1a79ec
No related branches found
No related tags found
No related merge requests found
......@@ -521,6 +521,7 @@ class dbquery extends functions
// Connexion error
if ($this->_sqlError == 1) {
// Shows the connexion data (server, port, user, pass)
header("HTTP/1.0 500 Internal Server Error");
if ($_SESSION['config']['debug'] == 'true') {
echo '- <b>' . _DB_CONNEXION_ERROR . '</b>';
echo ' -<br /><br />' . _DATABASE_SERVER . ' : '
......@@ -530,7 +531,6 @@ class dbquery extends functions
. _DB_USER . ' : ' . $this->_user . '<br/>' . _PASSWORD
. ' : ' . $this->_password;
}
header("HTTP/1.0 500 Internal Server Error");
exit();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment