Merge from 1.2
This commit is contained in:
commit
2726a2c640
@ -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'],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user