Fixed the support of a non-default port for MySQL, thanks to theBigOne!

SVN:2.0.3[3369]
This commit is contained in:
Denis Flaven
2014-10-16 14:34:25 +00:00
parent 9bec433e94
commit 457ee5de64

View File

@@ -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
{