Don't process $usernew->username if it doesn't exist (prevents normal users from editing profile).
Don't process $usernew->username if it doesn't exist (prevents normal users from editing profile).

dilawar/moodle