From 3aeb52178280bd997e7c96f39b91b6c1d7bf5aa9 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 19 Oct 2018 01:30:05 -0700 Subject: [PATCH] Patch PR #6335 to master --- app/Importer/Importer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Importer/Importer.php b/app/Importer/Importer.php index 7304c10faa..9795843f43 100644 --- a/app/Importer/Importer.php +++ b/app/Importer/Importer.php @@ -316,8 +316,8 @@ abstract class Importer $user->last_name = $user_array['last_name']; $user->username = $user_array['username']; $user->email = $user_array['email']; - $user->manager_id = $user_array['manager_id']; - $user->department_id = $user_array['department_id']; + $user->manager_id = $user_array['manager_id'] ?? null; + $user->department_id = $user_array['department_id'] ?? null; $user->activated = $user_array['activated']; $user->password = $this->tempPassword;