Correction

This commit is contained in:
Michael RICOIS 2013-01-29 16:17:08 +00:00
parent aca3830df0
commit fd812275c0

View File

@ -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';