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) !

SVN:trunk[3236]
This commit is contained in:
Denis Flaven
2014-07-01 16:40:38 +00:00
parent 730f522ab2
commit d4de0d2ee3

View File

@@ -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)