diff --git a/app/Imports/EventCalendarImport.php b/app/Imports/EventCalendarImport.php index 05c83a4..402f557 100644 --- a/app/Imports/EventCalendarImport.php +++ b/app/Imports/EventCalendarImport.php @@ -32,11 +32,11 @@ class EventCalendarImport implements ToModel $this->index += 1; return; } - $pattern_name = $row[1]; - $start_date = $row[2]; - $start_time = $row[3]; - $end_date = $row[4]; - $end_time = $row[5]; + $pattern_name = $row[1] ?? ''; + $start_date = $row[2] ?? ''; + $start_time = $row[3] ?? ''; + $end_date = $row[4] ?? ''; + $end_time = $row[5] ?? ''; if (empty($pattern_name)) { $this->error[] = imports_error($this->index, 'import3'); return;