Properly save username if different from email.. will probably depricate

the whole username/email thing next year anyway
This commit is contained in:
dave 2010-03-29 19:33:29 +00:00
parent 74ea0b7050
commit caa761e34a

View File

@ -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']; $u['username'] = $u['email'];
} }