Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 155 → Rev 156

/trunk/modules/recherche/Recherche.php
53,7 → 53,7
$approche = $this->rechercherNomApproche($noms);
} elseif ($res['entete']['total'] == 1 || $this->submit == $form['fiche']) { // renvoie à la fiche
$ids = array_keys($res['resultat']);
$url = $this->obtenirUrlFiche($ids[0]);
$url = $this->urls->obtenirUrlFiche($ids[0]);
$this->redirigerVers($url);
} else { // affiche les résultats
$res['type'] = $this->type_nom;
73,7 → 73,7
for ($i = 0; $i < 3; $i++) {
$nom_proche = array_shift($res['resultat']);
$approche[$i]['nom'] = ($this->type_nom == 'nom_vernaculaire') ? $nom_proche['nom'] : $nom_proche['nom_sci'];
$approche[$i]['url_nom_approche'] = $this->obtenirUrlRechercheSimple($approche[$i]['nom'], $this->type_nom);
$approche[$i]['url_nom_approche'] = $this->urls->obtenirUrlRechercheSimple($approche[$i]['nom'], $this->type_nom);
}
}
return $approche;