diff --git a/core/cmdbsource.class.inc.php b/core/cmdbsource.class.inc.php index 3345ee57c..327f03f50 100644 --- a/core/cmdbsource.class.inc.php +++ b/core/cmdbsource.class.inc.php @@ -79,7 +79,7 @@ class CMDBSource // Override the default port $sServer = $aConnectInfo[0]; $iPort = (int)$aConnectInfo[1]; - self::$m_oMysqli = new mysqli(self::$m_sDBHost, self::$m_sDBUser, self::$m_sDBPwd, '', $iPort); + self::$m_oMysqli = new mysqli($sServer, self::$m_sDBUser, self::$m_sDBPwd, '', $iPort); } else {