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:
james 2010-02-12 19:00:25 +00:00
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'];
}