Correct sql request
This commit is contained in:
parent
4fdfe03389
commit
2a991e8952
@ -103,7 +103,7 @@ class Entreprise extends WsScore
|
|||||||
$identite->Privileges = true;
|
$identite->Privileges = true;
|
||||||
} else {
|
} else {
|
||||||
$iDb = new WDB('sdv1');
|
$iDb = new WDB('sdv1');
|
||||||
$sql = "SELECT count(*) AS nbPriv FROM ge_cs2 WHERE cs = 'P' AND dateFin >= NOW() AND dateSuppr=0;";
|
$sql = "SELECT count(*) AS nbPriv FROM ge_cs2 WHERE cs = 'P' AND dateFin >= NOW() AND dateSuppr=0 AND siren=$siren;";
|
||||||
$ret = $iDb->query($sql);
|
$ret = $iDb->query($sql);
|
||||||
if ($ret['nbPriv']>0) {
|
if ($ret['nbPriv']>0) {
|
||||||
$identite->Privileges = true;
|
$identite->Privileges = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user