Skip to content

Commit

Permalink
Merge pull request #1323 from stakovicz/fix_admin_home
Browse files Browse the repository at this point in the history
corrige le problème de la home de l'admin
  • Loading branch information
stakovicz authored Oct 17, 2023
2 parents a19d4f7 + e445ccb commit 71b6b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/AppBundle/Controller/Admin/HomeAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit 71b6b8c

Please sign in to comment.