This commit is contained in:
Michael RICOIS 2013-01-29 16:08:53 +00:00
parent 32a15a581f
commit a12a7ab759

View File

@ -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';