This commit is contained in:
Michael RICOIS 2013-01-29 16:56:12 +00:00
parent 1c1ee832bc
commit deb045b9b7

View File

@ -809,15 +809,13 @@ function situationJuridiqueData($siren, $nic, $values = false)
$tabData['situationDernEven']='';
foreach ($tabTmp as $sit) {
$iInsee = new MInsee();
echo $siren;
$tmp = $iInsee->getAnnoncesLegales($siren, 0, $sit);
print_r($tmp);
if (count($tmp)>0) {
$tmp=$tmp[0];
$tabData['situationJuridique']=$sit;
$tabData['situationParution']=$tmp['DateParution'];
$tabData['situationDernCode']=$tmp['CodeEven'];
$tabData['situationDernEven']=preg_replace('/ +/', ' ', strtr($tmp['LibEven'],array("\r"=>' ',"\n"=>' ',"\t"=>' ',','=>' ',';'=>' ','"'=>' ',"'"=>' ')));
$tabData['situationDernCode']=$tmp[0]['CodeEven'];
$tabData['situationDernEven']=preg_replace('/ +/', ' ', strtr($tmp[0]['LibEven'],array("\r"=>' ',"\n"=>' ',"\t"=>' ',','=>' ',';'=>' ','"'=>' ',"'"=>' ')));
break;
}
}