0 ){ foreach($mapsImport['lst'] as $id => $values){ if( !in_array($id, $selection) ){ unset($mapsImport['lst'][$id]); } } } else{ foreach($mapsImport['lst'] as $id => $values){ unset($mapsImport['lst'][$id]); } } } // Enregistrement de la sélection du MatchSettings if($operation != 'getSelection'){ AdminServ::saveMatchSettingSelection($mapsImport); } $client->Terminate(); } // OUT if($operation == 'getSelection'){ echo json_encode($mapsImport); } else{ echo json_encode($_SESSION['adminserv']['matchset_maps_selected']); } ?>