forked from science-ation/science-ation
If the username field isnt shown, then we always need to set the username to the email address when saved
This commit is contained in:
parent
ba8c8f91cb
commit
1d0b469dac
@ -129,7 +129,7 @@ case 'save':
|
||||
}
|
||||
}
|
||||
|
||||
if(!array_key_exists('username', $u) || $u['username'] == '') {
|
||||
if(!$fields['username'] || !array_key_exists('username', $u) || $u['username'] == '') {
|
||||
$u['username'] = $u['email'];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user