garthh 3 weeks ago
parent
commit
d6fc159e44
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Repository/EventRepository.php

+ 1 - 1
src/Repository/EventRepository.php

@@ -55,7 +55,7 @@ class EventRepository extends ServiceEntityRepository
         $dateNow = new \DateTime('now');
 
          $qb = $this->createQueryBuilder('e')
-             ->where('e.published = :published OR e.published = NULL')
+             ->where('e.published != :published')
              ->andWhere('e.endOn > :dateNow')
              ->setParameter('published', false)
              ->setParameter('dateNow', $dateNow)