diff --git a/user_personal.php b/user_personal.php index 20a677f..8019918 100644 --- a/user_personal.php +++ b/user_personal.php @@ -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']; }