CS
This commit is contained in:
parent
e93df1d6d6
commit
4de0c30270
@ -117,17 +117,17 @@ class Metier_Liens_Base
|
||||
->where('l.idPar = :id')->setParameter('id', $id)
|
||||
->orderBy('l.PDetention', 'DESC');
|
||||
|
||||
// Actif / Inactif
|
||||
if (null !== $actif) {
|
||||
if (false === $actif) {
|
||||
$qb->andWhere('l.actif = 0');
|
||||
} else {
|
||||
$qb->andWhere('l.actif = 1');
|
||||
}
|
||||
// Actif / Inactif
|
||||
if (null !== $actif) {
|
||||
if (false === $actif) {
|
||||
$qb->andWhere('l.actif = 0');
|
||||
} else {
|
||||
$qb->andWhere('l.actif = 1');
|
||||
}
|
||||
}
|
||||
|
||||
// Don't display deleted - anomaly
|
||||
$qb->andWhere("l.dateSuppr = '0000-00-00 00:00:00'");
|
||||
// Don't display deleted - anomaly
|
||||
$qb->andWhere("l.dateSuppr = '0000-00-00 00:00:00'");
|
||||
$stmt = $qb->execute();
|
||||
$liens = $stmt->fetchAll(\PDO::FETCH_OBJ);
|
||||
} catch (\Doctrine\DBAL\DBALException $e) {
|
||||
|
Loading…
Reference in New Issue
Block a user