Debug
This commit is contained in:
parent
1c1ee832bc
commit
deb045b9b7
@ -809,15 +809,13 @@ function situationJuridiqueData($siren, $nic, $values = false)
|
|||||||
$tabData['situationDernEven']='';
|
$tabData['situationDernEven']='';
|
||||||
foreach ($tabTmp as $sit) {
|
foreach ($tabTmp as $sit) {
|
||||||
$iInsee = new MInsee();
|
$iInsee = new MInsee();
|
||||||
echo $siren;
|
|
||||||
$tmp = $iInsee->getAnnoncesLegales($siren, 0, $sit);
|
$tmp = $iInsee->getAnnoncesLegales($siren, 0, $sit);
|
||||||
print_r($tmp);
|
|
||||||
if (count($tmp)>0) {
|
if (count($tmp)>0) {
|
||||||
$tmp=$tmp[0];
|
$tmp=$tmp[0];
|
||||||
$tabData['situationJuridique']=$sit;
|
$tabData['situationJuridique']=$sit;
|
||||||
$tabData['situationParution']=$tmp['DateParution'];
|
$tabData['situationParution']=$tmp['DateParution'];
|
||||||
$tabData['situationDernCode']=$tmp['CodeEven'];
|
$tabData['situationDernCode']=$tmp[0]['CodeEven'];
|
||||||
$tabData['situationDernEven']=preg_replace('/ +/', ' ', strtr($tmp['LibEven'],array("\r"=>' ',"\n"=>' ',"\t"=>' ',','=>' ',';'=>' ','"'=>' ',"'"=>' ')));
|
$tabData['situationDernEven']=preg_replace('/ +/', ' ', strtr($tmp[0]['LibEven'],array("\r"=>' ',"\n"=>' ',"\t"=>' ',','=>' ',';'=>' ','"'=>' ',"'"=>' ')));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user