From 570e72c08375c27541a38128577e666a428d0899 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 1 Nov 2017 19:06:00 +0200 Subject: [PATCH] Fix for CSV import --- app/Services/ImportService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;