95,7 → 95,11 |
|
protected function protegerTableau(Array $tableau) { |
foreach ($tableau as $id => $val) { |
$tableau[$id] = Cel::db()->proteger($val); |
if ($val === null) { |
$tableau[$id] = 'NULL'; |
} else { |
$tableau[$id] = Cel::db()->proteger($val); |
} |
} |
return $tableau; |
} |
593,9 → 597,9 |
} |
|
public function formaterZoneGeoEtCodePourAffichage($obs) { |
$code_lieu = self::convertirCodeZoneGeoVersCodeInsee($obs['ce_zone_geo']); |
if(empty($code_lieu) && !empty($obs['pays'])) { |
$code_lieu = $obs['pays']; |
$code_lieu = self::convertirCodeZoneGeoVersCodeInsee($obs['ce_zone_geo']); |
if(empty($code_lieu) && !empty($obs['pays'])) { |
$code_lieu = $obs['pays']; |
} |
|
if(!empty(trim($obs['zone_geo'])) && !empty(trim($code_lieu))) { |