diff --git a/user/view.php b/user/view.php index bb01057b574..ba0935db781 100644 --- a/user/view.php +++ b/user/view.php @@ -218,7 +218,7 @@ } $countries = get_list_of_countries(); if (!empty($countries[$user->country]) && !isset($hiddenfields['country'])) { - if ($user->city && !isset($hiddenfields['city'] && !isset($hiddenfields['country'])) { + if ($user->city && !isset($hiddenfields['city']) && !isset($hiddenfields['country'])) { $location .= ', '; } $location .= $countries[$user->country];