mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Skip email if no email domain is given
This commit is contained in:
parent
a5467ba25d
commit
6fe639f490
|
@ -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=='') {
|
||||
|
|
Loading…
Reference in a new issue