Luca Parisio hace 1 mes
padre
commit
91108bf29c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Http/Livewire/CalendarRemove.php

+ 1 - 1
app/Http/Livewire/CalendarRemove.php

@@ -42,7 +42,7 @@ class CalendarRemove extends Component
 
                 $hour = date("H:i", strtotime($calendar->from));
 
-                $x = $calendar->course->name . " " . $d . " " . $hour;
+                $x = ($calendar->course ? ($calendar->course->name . " ") : "") . $d . " " . $hour;
                 
                 if (!in_array($x, $this->groups))
                     $this->groups[] = $x;