Merge from 1.2

This commit is contained in:
Michael RICOIS 2016-02-18 10:10:14 +00:00
commit 2726a2c640

View File

@ -1998,12 +1998,12 @@ function etablissementlisteMultiple($siren, $nic, $values = false)
$mInsee = new MInsee($iDb);
$result = $mInsee->getEtablissements($siren);
$tabData = array();
if (count($result) > 0) {
foreach ($result as $r) {
if (count($result['reponses']) > 0) {
foreach ($result['reponses'] as $r) {
$tabData[] = array(
'etabSIRET' => $result['Siret'],
'etabSIEGE' => $result['Siege'],
'etabACTIF' => $result['Actif'],
'etabSIRET' => $r['Siret'],
'etabSIEGE' => $r['Siege'],
'etabACTIF' => $r['Actif'],
);
}
}