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

SVN:trunk[3368]
This commit is contained in:
Denis Flaven
2014-10-16 14:32:10 +00:00
parent 055a87306e
commit 711949414d

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
{