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

fix : bug #195

parent 271c4744
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
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