Skip email if no email domain is given

This commit is contained in:
snipe 2016-08-02 12:30:02 -07:00
parent a5467ba25d
commit 6fe639f490

View file

@ -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=='') {