Une seul connection à la bdd
This commit is contained in:
parent
886ef055ac
commit
08183d30fe
@ -3495,7 +3495,8 @@ class Entreprise extends Scores_Ws_Server
|
||||
if (strlen($siret) == 14) $nic = substr($siret,9,5);
|
||||
elseif (strlen($siret) == 9) $nic = '';
|
||||
|
||||
$iInsee = new MInsee();
|
||||
$iDb = new WDB();
|
||||
$iInsee = new MInsee($iDb);
|
||||
|
||||
$rep = $iInsee->getEtablissements($siren, $nic, $deb, $nbRep, $maxRep, $dep, $actif, $siege);
|
||||
if ( count($rep['reponses'])==0 && $dep>0 ) {
|
||||
@ -3575,7 +3576,6 @@ class Entreprise extends Scores_Ws_Server
|
||||
}
|
||||
|
||||
else {
|
||||
$iDb = new WDB();
|
||||
$iDb->insert('jo.siren_inexistants', array(
|
||||
'siren' => $siren,
|
||||
'nic' => $nic,
|
||||
|
Loading…
Reference in New Issue
Block a user