diff --git a/app/Services/ImportService.php b/app/Services/ImportService.php index 2a518c570d55..b8508f6f3722 100644 --- a/app/Services/ImportService.php +++ b/app/Services/ImportService.php @@ -812,7 +812,9 @@ class ImportService continue; } - $obj->$field = $data[$index]; + if (isset($data[$index])) { + $obj->$field = $data[$index]; + } } return $obj;