Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 329 Rev 332
Line 46... Line 46...
46
	}
46
	}
Line 47... Line 47...
47
	
47
	
48
	public function getBloc() {
48
	public function getBloc() {
49
		$nt = $this->nomCourant->getNomRetenu()->get('num_taxonomique');
49
		$nt = $this->nomCourant->getNomRetenu()->get('num_taxonomique');
50
		$nomsVerna = $this->nomsVernaculaires->getRechercheLimitee($nt);
50
		$nomsVerna = $this->nomsVernaculaires->getRechercheLimitee($nt);
51
		$donnees['nomsVerna'] = array_slice($nomsVerna['resultat'], 0, 5);
51
		$donnees['nomsVerna'] = (isset($nomsVerna['resultat']) && is_array($nomsVerna['resultat'])) ? array_slice($nomsVerna['resultat'], 0, 5) : array();
52
		return $donnees;
52
		return $donnees;
Line 53... Line 53...
53
	}
53
	}
54
		
54