mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 23:32:17 +02:00
Fixed the support of a non-default port for MySQL, thanks to theBigOne!
SVN:2.0.3[3369]
This commit is contained in:
@@ -79,7 +79,7 @@ class CMDBSource
|
|||||||
// Override the default port
|
// Override the default port
|
||||||
$sServer = $aConnectInfo[0];
|
$sServer = $aConnectInfo[0];
|
||||||
$iPort = (int)$aConnectInfo[1];
|
$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
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user