Turn on DB debugging
This commit is contained in:
1 parent
b2d1fa74bc
commit
8c81dac17b
1 file changed
+1
-1
@@ -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.");
|
||||
|
||||
Reference in new issue
Block a user