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;