Turn on DB debugging

This commit is contained in:
nikolark committed 2013-09-18 20:22:58 +02:00
1 parent b2d1fa74bc
commit 8c81dac17b
1 file changed
+1 -1
+1 -1
View File
@@ -10,7 +10,7 @@ require_once('credentials.php');
function db_connect($host = "default") {
if (!isset ($GLOBALS['db_conn'][$host])) {
$conn = & DB :: connect(getDSN($host));
$conn = & DB :: connect(getDSN($host), array('debug' => 2));
if (DB :: isError($conn)) {
if ($conn->getCode() == -24) {
error("Databasen er for øyeblikket utilgjengelig, vennligst forsøk igjen siden.");