Browse Source

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 10 năm trước cách đây
mục cha
commit
54818b31f9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
 				// 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
 			{
 			{