diff --git a/scripts/jobs/enrichissement.php b/scripts/jobs/enrichissement.php index 093aa5cb..53e1d173 100644 --- a/scripts/jobs/enrichissement.php +++ b/scripts/jobs/enrichissement.php @@ -1297,12 +1297,13 @@ function AdresseNormaliseData($siren, $nic, $values = false) $infoRNVP = $rnvp->format(); } catch (Exception $e) {} - foreach($item as AdresseNormaliseEntete($values)) { + $head = AdresseNormaliseEntete(''); + foreach($item as $head) { $output[$item] = ''; } if ($infoRNVP !== null) { - foreach ($item as AdresseNormaliseEntete($values)) { + foreach ($item as $head) { $output[$item] = $infoRNVP->{$item}; } }