Oups foreach
This commit is contained in:
parent
e4e6274ee4
commit
d5fe4957b9
@ -1279,6 +1279,7 @@ function AdresseNormaliseEntete($values)
|
||||
|
||||
function AdresseNormaliseData($siren, $nic, $values = false)
|
||||
{
|
||||
$output = array();
|
||||
try {
|
||||
$etabM = new Application_Model_JoEtablissements();
|
||||
$sql = $etabM->select(true)->columns(array('LPAD(source,3,0)', 'LPAD(source_id,20,0)'))
|
||||
@ -1299,12 +1300,12 @@ function AdresseNormaliseData($siren, $nic, $values = false)
|
||||
} catch (Exception $e) {}
|
||||
|
||||
$head = AdresseNormaliseEntete('');
|
||||
foreach($item as $head) {
|
||||
foreach($head as $item) {
|
||||
$output[$item] = '';
|
||||
}
|
||||
|
||||
if ($infoRNVP !== null) {
|
||||
foreach ($item as $head) {
|
||||
foreach ($head as $item) {
|
||||
$output[$item] = $infoRNVP->{$item};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user