74,10 → 74,15 |
$intitule = ($element['nom_sel'] != '') ? "Proposition $nomPropose" : 'Commentaire'; |
$auteur = htmlspecialchars($this->creerAuteur($element)); |
$nomSelActuel = htmlspecialchars($element['dob_nom_sel']); |
$zoneGeo = htmlspecialchars((($element['dob_zone_geo'] != '') ? $element['dob_zone_geo'] : '?')); |
$dateObs = htmlspecialchars(strftime('%d %B %Y', strtotime($element['dob_date_observation']))); |
$zoneGeo = htmlspecialchars((($element['dob_zone_geo'] != '') ? $element['dob_zone_geo'] : null)); |
$dateObs = null; |
if (strpos($element['dob_date_observation'], '0000') === false) { |
$dateObs = htmlspecialchars(strftime('%d %B %Y', strtotime($element['dob_date_observation']))); |
} |
|
$titre = "$intitule par $auteur pour $nomSelActuel à $zoneGeo le $dateObs"; |
$titre = "$intitule par $auteur pour $nomSelActuel"; |
$titre .= ($zoneGeo != null) ? " à $zoneGeo" : ""; |
$titre .= ($dateObs != null) ? " le $dateObs" : ""; |
return $titre; |
} |
|