Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 244 → Rev 245

/trunk/modules/recherche/Recherche.php
66,7 → 66,7
$approche = $this->rechercherNomApproche($noms);
} elseif ($res['entete']['total'] == 1 || $this->submit == $form['fiche']) { // renvoie à la fiche
$ids = array_keys($res['resultat']);
$url = $this->urls->obtenirUrlFiche($ids[0], $this->type_nom, $this->nom);
$url = $this->urls->obtenirUrlFiche($ids[0], $this->type_nom, $this->nom, $res['resultat'][$ids[0]][nom_sci]);
$this->redirigerVers($url);
} else { // affiche les résultats
$res['type'] = $this->type_nom;