Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 1165 Rev 1166
Line 197... Line 197...
197
	}
197
	}
Line 198... Line 198...
198
	
198
	
199
	public function getPhotosCaracteresIdentification() {
199
	public function getPhotosCaracteresIdentification() {
200
		$caracteres = array();
200
		$caracteres = array();
-
 
201
		$nnr = $this->nomCourant->getNnr();
201
		$nnr = $this->nomCourant->getNnr();
202
		// pas de tag: on cherche les mieux votées pour ce protocole sans tenir compte des tags
202
		$infosCaracteres = $this->images->getInfosMeilleuresImagesParTag($nnr, array_keys($this->getOrganes()), Eflore::PROTOCOLE_CARACTERES, 3);
203
		$infosCaracteres = $this->images->getInfosMeilleuresImagesParTag($nnr, '', Eflore::PROTOCOLE_CARACTERES, 3);
203
		if (! empty($infosCaracteres) && ! empty($infosCaracteres[''])) { // le tag est vide, ici
204
		if (! empty($infosCaracteres) && ! empty($infosCaracteres[''])) { // le tag est vide, ici
204
			$caracteres = $infosCaracteres;
205
			$caracteres = $infosCaracteres[''];
205
		}
206
		}
206
		$this->donnees['caracteres'] = $caracteres;
207
		$this->donnees['caracteres'] = $caracteres;
Line 207... Line 208...
207
	}
208
	}