diff --git a/build/database/core/DatabaseDriver.php b/build/database/core/DatabaseDriver.php index 36cec40..f19898a 100755 --- a/build/database/core/DatabaseDriver.php +++ b/build/database/core/DatabaseDriver.php @@ -102,7 +102,7 @@ try{ /* (1) If local -> instanciates with local configuration */ - if( !checkdnsrr($_SERVER['SERVER_NAME'], 'NS') ) + if( $_SERVER['SERVER_NAME'] == 'localhost' || !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']); /* (2) If Remote -> instanciates with Remote configuration */ else