diff --git a/app/Console/Commands/ObjectImportCommand.php b/app/Console/Commands/ObjectImportCommand.php index 84bb0a6fa6..09011d49ae 100644 --- a/app/Console/Commands/ObjectImportCommand.php +++ b/app/Console/Commands/ObjectImportCommand.php @@ -660,7 +660,12 @@ class ObjectImportCommand extends Command $last_name = $user_email_array['last_name']; if ($user_email=='') { - $user_email = str_slug($user_email_array['username']).'@'.Setting::getSettings()->email_domain; + if (Setting::getSettings()->email_domain) { + $user_email = str_slug($user_email_array['username']).'@'.Setting::getSettings()->email_domain; + } else { + $user_email = ''; + } + } if ($user_username=='') {