if (empty($user)) {
throw new Exception("Can't find user with id '$id'.");
}
updateLocation($user);
} else if (have_option('n', 'nickname')) {
$nickname = get_option_value('n', 'nickname');
if (empty($user)) {
throw new Exception("Can't find user with id '$id'.");
}
updateLocation($user);
} else if (have_option('n', 'nickname')) {
$nickname = get_option_value('n', 'nickname');