diff --git a/library/Metier/Liens/Base.php b/library/Metier/Liens/Base.php index 7b083be5..3b7c2b0f 100755 --- a/library/Metier/Liens/Base.php +++ b/library/Metier/Liens/Base.php @@ -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) {