From e445ccb17bfd80ec3d1933b1ef2ebbee6e869d7b Mon Sep 17 00:00:00 2001 From: Albin Date: Tue, 17 Oct 2023 21:16:00 +0200 Subject: [PATCH] =?UTF-8?q?corrige=20le=20probl=C3=A8me=20de=20la=20home?= =?UTF-8?q?=20de=20l'admin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/AppBundle/Controller/Admin/HomeAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/AppBundle/Controller/Admin/HomeAction.php b/sources/AppBundle/Controller/Admin/HomeAction.php index 186cb3802..80d53d921 100644 --- a/sources/AppBundle/Controller/Admin/HomeAction.php +++ b/sources/AppBundle/Controller/Admin/HomeAction.php @@ -62,7 +62,7 @@ public function __invoke() { $nextevents = $this->eventRepository->getNextEvents(); $cards = []; - if ($this->security->isGranted('ROLE_FORUM')) { + if ($this->security->isGranted('ROLE_FORUM') && $nextevents) { foreach ($nextevents as $event) { $stats = $this->eventStatsRepository->getStats($event->getId()); $info = [];