mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix import error when email address is empty or invalid
This commit is contained in:
parent
2ddf5aa8d8
commit
087f5a2265
1 changed files with 10 additions and 2 deletions
|
|
@ -416,7 +416,6 @@ class importerAdminController extends importer
|
|||
{
|
||||
$obj->email_address = $obj->user_id . '@example.com';
|
||||
}
|
||||
list($obj->email_id, $obj->email_host) = explode('@', $obj->email);
|
||||
// Set the mailing option
|
||||
if($obj->allow_mailing!='Y') $obj->allow_mailing = 'N';
|
||||
// Set the message option
|
||||
|
|
@ -453,9 +452,18 @@ class importerAdminController extends importer
|
|||
$obj->email_address = $obj->user_id . '@example.com';
|
||||
}
|
||||
|
||||
list($obj->email_id, $obj->email_host) = explode('@', $obj->email_address);
|
||||
if (!$obj->email_id)
|
||||
{
|
||||
$obj->email_id = '';
|
||||
}
|
||||
if (!$obj->email_host)
|
||||
{
|
||||
$obj->email_host = '';
|
||||
}
|
||||
|
||||
// Add a member
|
||||
$output = executeQuery('member.insertMember', $obj);
|
||||
|
||||
if($output->toBool() && !($obj->password))
|
||||
{
|
||||
// Send a mail telling the user to reset his password.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue