Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 1112 → Rev 1113

/trunk/services/modules/0.1/bdtfx/Noms.php
677,6 → 677,12
$champs = explode(',', $this->parametres['retour.champs']);
}
 
// Structure des données: objet ou liste ?
$modeListe = false;
if (array_key_exists('retour.structure', $this->parametres)) {
$modeListe = ($this->parametres['retour.structure'] === "liste");
}
 
$noms = array();
foreach ($resultat as $tab) {
$this->table_retour = array();
690,7 → 696,12
$this->ajouterChampsPersonnalises($champs, $reponse_id);
$retour = array_merge($retour, $this->table_retour);
}
$noms[$num] = $retour;
if ($modeListe) {
$retour['num_nom'] = intval($num);
$noms[] = $retour;
} else {
$noms[$num] = $retour;
}
}
 
return $noms;