浏览代码

Using iTop in mode CLI: let PHP display the fatal error "unknown function mysql_connect:

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1244 a333f486-631f-4898-b8df-5754b55c2be0
romainq 14 年之前
父节点
当前提交
d6f71468fa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/cmdbsource.class.inc.php

+ 1 - 1
core/cmdbsource.class.inc.php

@@ -56,7 +56,7 @@ class CMDBSource
 		self::$m_sDBUser = $sUser;
 		self::$m_sDBPwd = $sPwd;
 		self::$m_sDBName = $sSource;
-		if (!self::$m_resDBLink = @mysql_connect($sServer, $sUser, $sPwd))
+		if (!self::$m_resDBLink = mysql_connect($sServer, $sUser, $sPwd))
 		{
 			throw new MySQLException('Could not connect to the DB server', array('host'=>$sServer, 'user'=>$sUser));
 		}