mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 13:57:41 -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'];
|
$last_name = $user_email_array['last_name'];
|
||||||
|
|
||||||
if ($user_email=='') {
|
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=='') {
|
if ($user_username=='') {
|
||||||
|
|
Loading…
Reference in a new issue