Skip to content

Commit

Permalink
corrige le problème de la home de l'admin
Browse files Browse the repository at this point in the history
  • Loading branch information
stakovicz committed Oct 17, 2023
1 parent a19d4f7 commit e445ccb
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 e445ccb

Please sign in to comment.