From 509a95b3cc6b2ed6a87d60aff44dc2c49be0df32 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 12 May 2017 22:41:57 +0200 Subject: [PATCH] fix --- build/database/core/DatabaseDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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