浏览代码

Fixed a regression introduced by [3188], which affects the Audit results and also potentially the User rights. Many thanks to Jean-Francois Bilger for finding the issue (and the associated fix) !

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

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

@@ -462,7 +462,7 @@ class CMDBSource
 	public static function GetColumns($oResult)
 	{
 		$aNames = array();
-		for ($i = 0; $i < (($___mysqli_tmp = $oResult->num_fields) ? $___mysqli_tmp : 0) ; $i++)
+		for ($i = 0; $i < (($___mysqli_tmp = $oResult->field_count) ? $___mysqli_tmp : 0) ; $i++)
 		{
 			$meta = $oResult->fetch_field_direct($i);
 			if (!$meta)