38,8 → 38,14 |
$this->images->setProjet('cel'); |
$nnr = $this->nomCourant->getNnr(); |
$infos_image = $this->images->getUrlPremiereImageParIdsNoms(array($nnr)); |
$image = array_slice($infos_image['resultats'], 0); |
$donnees['imageUrl'] = $image[0]['binaire.href']; |
if(!$infos_image || $infos_image['entete']['total'] == 0) { |
$this->images->setProjet('photoflora'); |
$nnr = $this->nomCourant->getNnr(); |
$infos_image = $this->images->getUrlPremiereImageParIdsNoms(array($nnr)); |
} |
|
$image = array_shift($infos_image['resultats']); |
$donnees['imageUrl'] = $image['binaire.href']; |
return $donnees; |
} |
|