From bd4d632888ddcb558f00395f4ed8746717d137c4 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 15 Mar 2016 14:38:50 +0000 Subject: [PATCH] Adresse RNVP correction --- scripts/jobs/enrichissement.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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}; } }