Remove
This commit is contained in:
parent
4a9d5aac2a
commit
343a62080a
@ -1526,7 +1526,7 @@ public function rechercheDirOld($nom, $prenom='', $fonction='', $dateNaiss='', $
|
||||
|
||||
$limit="LIMIT $deb, $nbRep";
|
||||
|
||||
$sqlInfo="Etab as Loc, e.id, e.source, e.source_id, e.triCode, e.autre_id, e.siren, e.nic, e.siege, ".
|
||||
$sqlInfo="e.id, e.source, e.source_id, e.triCode, e.autre_id, e.siren, e.nic, e.siege, ".
|
||||
"e.raisonSociale, e.enseigne, e.sigle, e.adr_num, e.adr_btq, e.adr_typeVoie, e.adr_libVoie, ".
|
||||
"e.adr_comp, e.adr_cp, e.adr_ville, e.adr_dep, e.adr_com, e.tel, e.fax, e.cj, e.ape_etab, e.ape_entrep, e.teff_etab, ".
|
||||
"CONCAT(e.siren, e.nic) as siret, e.actif, e.identite_pre, IF(e.siege=2,0.5,e.siege) AS triSiege";
|
||||
@ -1537,8 +1537,8 @@ public function rechercheDirOld($nom, $prenom='', $fonction='', $dateNaiss='', $
|
||||
|
||||
$strSiege='';
|
||||
if ($siege===null) $strSiege='';
|
||||
elseif ($siege==1) $strSiege='AND e.siege=1 ';
|
||||
elseif ($siege==0) $strSiege='AND e.siege IN(0,2) ';
|
||||
elseif ($siege==1) $strSiege=' AND e.siege=1 ';
|
||||
elseif ($siege==0) $strSiege=' AND e.siege IN(0,2) ';
|
||||
|
||||
//Search with "departement"
|
||||
if ($dep>0 && $dep<99999) {
|
||||
@ -1574,8 +1574,6 @@ public function rechercheDirOld($nom, $prenom='', $fonction='', $dateNaiss='', $
|
||||
|
||||
}
|
||||
|
||||
//file_put_contents('test.log', "siren=$siren AND (nic=$nic OR siege=1) $strActif $strSiege ORDER BY triSiege DESC, e.actif DESC, e.nic DESC $limit");
|
||||
|
||||
//
|
||||
if ($nbTot==0 && $actif==-1) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user