Skip to content

Commit

Permalink
Update app/Http/Controllers/DashboardAdminController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
simonostendorf authored Oct 3, 2024
1 parent 4cbd64b commit 13df86c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/DashboardAdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public function eventSubmit(IlluminateRequest $request): Response

// check if any groups has a course
$hasCourse = false;
if ($event->groups->first() != null && $event->groups->first()->courses()->exists()) $hasCourse = true;
if ($event->groups->first()?->courses()->exists()) $hasCourse = true;

return Inertia::render('Dashboard/Admin/Submit', [
'event' => $event,
Expand Down

0 comments on commit 13df86c

Please sign in to comment.