From fd812275c09eb71cf6f3da871895fcea42c2dc6e Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 29 Jan 2013 16:17:08 +0000 Subject: [PATCH] Correction --- batch/enrichissement.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/batch/enrichissement.php b/batch/enrichissement.php index c62f0a7d..eba6b466 100644 --- a/batch/enrichissement.php +++ b/batch/enrichissement.php @@ -475,11 +475,9 @@ foreach($tabExtract as $key) break; } - echo $key."\n"; if ( $element == 'data' && in_array($key, $select) ) { ${$key.'Data'} = $values; - echo $key.'Data'; var_dump($values); } } @@ -674,7 +672,6 @@ foreach($tabIdentifiant as $item) if( ${$item.'Data'}!=false ){ $values = ${$item.'Data'}; } - echo $item.'Data'; $retour = call_user_func($item.'Data', $siren, $nicV, $values); $tabData[$row] = $tabData[$row] + $retour; } @@ -810,7 +807,7 @@ function situationJuridiqueData($siren, $nic, $values = false) $tabData['situationJuridique']=''; foreach ($tabTmp as $sit) { $iInsee = new MInsee(); - $tmp = $iInsee->getAnnoncesLegales($cel[$pos['SIREN']], 0, $sit, false); + $tmp = $iInsee->getAnnoncesLegales($siren, 0, $sit, false); print_r($tmp); if (count($tmp)>0) { $tmp=$tmp[0]; @@ -823,7 +820,7 @@ function situationJuridiqueData($siren, $nic, $values = false) } if ($tabData['situationJuridique']=='') { $iDb = new WDB(); - $rep = $iDb->select('rncs_entrep', 'actif, dateRad', "siren=".$cel[$pos['SIREN']], false, MYSQL_ASSOC); + $rep = $iDb->select('rncs_entrep', 'actif, dateRad', "siren='".$siren."'", false, MYSQL_ASSOC); $entrep = $rep[0]; if (isset($entrep['actif']) && $entrep['actif']*1==0) $tabData['situationJuridique']='R';