Skip to content

Commit

Permalink
Fix #96 | Thx to @ronator
Browse files Browse the repository at this point in the history
  • Loading branch information
gillesdubois committed Jun 3, 2016
1 parent 34aad4a commit a011a6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/main_sections/ms_export/ms_csv.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)){

Expand Down Expand Up @@ -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])){
Expand Down

0 comments on commit a011a6a

Please sign in to comment.