Explorar o código

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3368 a333f486-631f-4898-b8df-5754b55c2be0
dflaven %!s(int64=10) %!d(string=hai) anos
pai
achega
54818b31f9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/cmdbsource.class.inc.php

+ 1 - 1
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
 			{