Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 697 Rev 801
Line 66... Line 66...
66
	public function getPhoto($source) {
66
	public function getPhoto($source) {
67
		$donnees = array();
67
		$donnees = array();
68
		$this->images->setProjet($source);
68
		$this->images->setProjet($source);
69
		$nnr = $this->nomCourant->getNnr();
69
		$nnr = $this->nomCourant->getNnr();
70
		$infos_image = $this->images->getUrlPremiereImageParIdsNoms(array($nnr));
70
		$infos_image = $this->images->getUrlPremiereImageParIdsNoms(array($nnr));
71
		if ($infos_image['resultats']) {
71
		if ($infos_image != array()) {
72
			$image = array_shift($infos_image['resultats']);
72
			$image = array_shift($infos_image);
73
			$donnees['imageUrl'] =  $image['binaire.href'];
73
			$donnees['imageUrl'] =  $image['binaire.href'];
74
		}
74
		}
75
		return $donnees;
75
		return $donnees;
76
	}
76
	}