From 12e8d4ea92aa020b50087c9cb1885a14c13bd678 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 8 Mar 2018 20:55:00 +0100 Subject: [PATCH] hotfix repo debugging --- build/database/core/DatabaseDriver.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/database/core/DatabaseDriver.php b/build/database/core/DatabaseDriver.php index 695b06d..ccc4c78 100755 --- a/build/database/core/DatabaseDriver.php +++ b/build/database/core/DatabaseDriver.php @@ -124,7 +124,11 @@ /* (1) If local -> instanciates with local configuration */ // if( !checkdnsrr($_SERVER['SERVER_NAME'], 'NS') ) - self::$instance[$label] = new DatabaseDriver($conf[$label]['local']['host'], $conf[$label]['local']['dbname'], $conf[$label]['local']['user'], $conf[$label]['local']['password'],$conf[$label]['local']['debug']); + if(!isset($conf[$label]['local']['debug'])){ + $conf[$label]['local']['debug'] = false; + } + + self::$instance[$label] = new DatabaseDriver($conf[$label]['local']['host'], $conf[$label]['local']['dbname'], $conf[$label]['local']['user'], $conf[$label]['local']['password'],$conf[$label]['local']['debug']); /* (2) If Remote -> instanciates with Remote configuration */ // else // self::$instance[$label] = new DatabaseDriver($conf[$label]['remote']['host'], $conf[$label]['remote']['dbname'], $conf[$label]['remote']['user'], $conf[$label]['remote']['password']);