Luca Parisio 1 개월 전
부모
커밋
91108bf29c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;