浏览代码

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 年之前
父节点
当前提交
54818b31f9
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
 			{