From a011a6a76f48dbbda976bb64f554e8188c3bbba6 Mon Sep 17 00:00:00 2001 From: Gilles Dubois Date: Fri, 3 Jun 2016 17:26:16 +0200 Subject: [PATCH] Fix #96 | Thx to @ronator --- plugins/main_sections/ms_export/ms_csv.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/main_sections/ms_export/ms_csv.php b/plugins/main_sections/ms_export/ms_csv.php index 4e7f49392..e65a8e5ac 100755 --- a/plugins/main_sections/ms_export/ms_csv.php +++ b/plugins/main_sections/ms_export/ms_csv.php @@ -83,7 +83,7 @@ while($_SESSION['OCS']['SQL_DATA_FIXE'][$protectedGet['tablename']][$i]){ $result=mysqli_query($link,$_SESSION['OCS']['SQL_DATA_FIXE'][$protectedGet['tablename']][$i]) or die(mysqli_error($link)); - while( $cont = mysqli_fetch_array($result,MYSQL_ASSOC) ) { + while( $cont = mysqli_fetch_array($result) ) { foreach ($col as $field => $lbl){ if (array_key_exists($lbl,$cont)){ @@ -111,7 +111,7 @@ $i=0; require_once('require/function_admininfo.php'); $inter=interprete_accountinfo($col,array()); - while( $cont = mysqli_fetch_array($result,MYSQL_ASSOC) ) { + while( $cont = mysqli_fetch_array($result) ) { unset($cont['MODIF']); foreach ($col as $field => $lbl){ if ($lbl == "name_of_machine" and !isset($cont[$field])){