Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 123 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 123 Rev 127
Line 71... Line 71...
71
		$res = $noms->getRechercheFloue($this->nom);
71
		$res = $noms->getRechercheFloue($this->nom);
72
		if (!($res == false || $res['entete']['total'] == 0)) {
72
		if (!($res == false || $res['entete']['total'] == 0)) {
73
			for ($i = 0; $i < 3; $i++) {
73
			for ($i = 0; $i < 3; $i++) {
74
				$nom_proche = array_shift($res['resultat']);
74
				$nom_proche = array_shift($res['resultat']);
75
				$approche[$i]['nom'] = ($this->type_nom == 'nom_vernaculaire') ? $nom_proche['nom'] : $nom_proche['nom_sci'];
75
				$approche[$i]['nom'] = ($this->type_nom == 'nom_vernaculaire') ? $nom_proche['nom'] : $nom_proche['nom_sci'];
76
				$approche[$i]['url_nom_approche'] = $this->obtenirUrlRechercheSimple($approche, $this->type_nom);
76
				$approche[$i]['url_nom_approche'] = $this->obtenirUrlRechercheSimple($approche[$i]['nom'], $this->type_nom);
77
			}
77
			}
78
		}
78
		}
79
		return $approche;
79
		return $approche;
80
	}
80
	}