Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 938 Rev 970
Line 206... Line 206...
206
		$taxon = null;
206
		$taxon = null;
207
		if (isset($this->parametres['num_taxon'])) {
207
		if (isset($this->parametres['num_taxon'])) {
208
			$numTaxon = $this->parametres['num_taxon'];
208
			$numTaxon = $this->parametres['num_taxon'];
209
			$nomTable = $this->recupererNomTableReferentiel();
209
			$nomTable = $this->recupererNomTableReferentiel();
210
			$bdd = new Bdd();
210
			$bdd = new Bdd();
211
			$requete = "SELECT num_nom, num_nom_retenu, nom_sci, rang, num_taxonomique FROM {$nomTable} ".
211
			$requete = "SELECT num_nom, num_nom_retenu, nom_sci, nom_complet, rang, num_taxonomique FROM {$nomTable} ".
212
				"WHERE num_taxonomique={$numTaxon} ORDER BY If(num_nom=num_nom_retenu,0,1) LIMIT 0,1";
212
				"WHERE num_taxonomique={$numTaxon} ORDER BY If(num_nom=num_nom_retenu,0,1) LIMIT 0,1";
213
			$taxon = $bdd->recuperer($requete);
213
			$taxon = $bdd->recuperer($requete);
214
			if ($taxon === false) {
214
			if ($taxon === false) {
215
				$taxon = null;
215
				$taxon = null;
216
			}
216
			}