Correction AdresseNormaliseInsee

This commit is contained in:
Michael RICOIS 2013-09-09 15:55:43 +00:00
parent 172ddaff7e
commit dde9a1ed9a

View File

@ -1337,7 +1337,7 @@ function AdresseNormaliseData($siren, $nic, $values = false)
$output['AdresseL5_DISTSP'] ='';
$output['AdresseL6_POST'] ='';
$output['AdresseL7_PAYS'] ='';
$tmp = $iInsee->getAdresse($siren, $nic, 0);
$tmp = $iInsee->getAdresse($siren, $nic);
if (count($tmp)>0) {
$output['AdresseL1_NOM'] = $tmp['L1_NOM'];
$output['AdresseL2_NOM2'] = $tmp['L2_NOM2'];
@ -1373,7 +1373,7 @@ function AdresseNormaliseInseeData($siren, $nic, $values = false)
$output['L5_DISTSP'] ='';
$output['L6_POST'] ='';
$output['L7_PAYS'] ='';
$tmp = $iInsee->getAdresse($siren, $nic);
$tmp = $iInsee->getAdresse($siren, $nic, 0);
if (count($tmp)>0) {
$output['L1_NOM'] = $tmp['L1_NOM'];
$output['L2_NOM2'] = $tmp['L2_NOM2'];