diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Repository/AlertRepository.php b/src/ninegate-1.0/src/Cadoles/PortalBundle/Repository/AlertRepository.php index ea68490d..738b2aa5 100644 --- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Repository/AlertRepository.php +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Repository/AlertRepository.php @@ -46,7 +46,7 @@ class AlertRepository extends EntityRepository $niveau01=($user?$user->getNiveau01():null); $groups=($user?$user->getGroups():[]); - $userreads=($user?$user->getAlertreaders():[]); + $userreads=($user?$user->getAlertreaders():new ArrayCollection()); // Initialisation du calcul des alerts $alerts=new ArrayCollection();