mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix #2044 default value mismatch for identifier/identifiers
This commit is contained in:
parent
ba94631921
commit
8620ee4b02
1 changed files with 7 additions and 3 deletions
|
|
@ -368,11 +368,15 @@ class Member extends ModuleObject
|
|||
// Check signup form
|
||||
$oModuleController = getController('module');
|
||||
$oMemberAdminController = getAdminController('member');
|
||||
if(!$config->identifier)
|
||||
if(empty($config->identifier))
|
||||
{
|
||||
$config->identifier = 'email_address';
|
||||
$config->identifier = 'user_id';
|
||||
}
|
||||
if(!$config->signupForm || !is_array($config->signupForm))
|
||||
if(empty($config->identifiers))
|
||||
{
|
||||
$config->identifiers = array('user_id', 'email_address');
|
||||
}
|
||||
if(empty($config->signupForm) || !is_array($config->signupForm))
|
||||
{
|
||||
$config->signupForm = $oMemberAdminController->createSignupForm($config);
|
||||
$output = $oModuleController->updateModuleConfig('member', $config);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue