forked from science-ation/science-ation
Properly save username if different from email.. will probably depricate
the whole username/email thing next year anyway
This commit is contained in:
parent
74ea0b7050
commit
caa761e34a
@ -129,7 +129,7 @@ case 'save':
|
||||
}
|
||||
}
|
||||
|
||||
if(!$fields['username'] || !array_key_exists('username', $u) || $u['username'] == '') {
|
||||
if(!in_array('username', $fields) || !array_key_exists('username', $u) || $u['username'] == '') {
|
||||
$u['username'] = $u['email'];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user