Correction retour privilèges
This commit is contained in:
parent
e00fbd8e12
commit
0e29030930
@ -1444,8 +1444,10 @@ function privilegeData($siren, $nic, $values = false)
|
||||
$iDb = new WDB('sdv1');
|
||||
$sql = "SELECT count(*) AS nbPriv FROM ge_cs2 WHERE cs = 'P' AND dateFin >= NOW() AND dateSuppr=0 AND siren='$siren';";
|
||||
$ret = $iDb->query($sql);
|
||||
if ($ret['nbPriv']>0) {
|
||||
$return = 'Oui';
|
||||
if (count($ret) > 0) {
|
||||
if ($ret[0]['nbPriv']>0) {
|
||||
$return = 'Oui';
|
||||
}
|
||||
}
|
||||
}
|
||||
$tabData['privilege'] = $return;
|
||||
|
Loading…
Reference in New Issue
Block a user