Debug
This commit is contained in:
parent
32a15a581f
commit
a12a7ab759
@ -1383,14 +1383,14 @@ function SiretSucData($siren, $nic, $values = false)
|
||||
return $tabData;
|
||||
}
|
||||
|
||||
function privilegeEntete()
|
||||
function privilegeEntete($values)
|
||||
{
|
||||
return array(
|
||||
'privilege',
|
||||
);
|
||||
}
|
||||
|
||||
function privilegeData()
|
||||
function privilegeData($siren, $nic, $values = false)
|
||||
{
|
||||
$return = 'Non';
|
||||
//Présence de privilèges
|
||||
@ -1403,7 +1403,7 @@ function privilegeData()
|
||||
$return = 'Oui';
|
||||
} else {
|
||||
$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);
|
||||
if ($ret['nbPriv']>0) {
|
||||
$return = 'Oui';
|
||||
|
Loading…
Reference in New Issue
Block a user