Skip to content
Browse files

"MDL-15251, fix country field in user/view.php"

  • Loading branch information...
1 parent 55d75bf commit 9052f663a85962d2204ed103c859a7986a53912b dongsheng committed Jun 16, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 user/view.php
View
2 user/view.php
@@ -226,11 +226,11 @@
if ($user->city && !isset($hiddenfields['city'])) {
$location .= $user->city;
}
+ $countries = get_list_of_countries();
if (!empty($countries[$user->country]) && !isset($hiddenfields['country'])) {
if ($user->city && !isset($hiddenfields['country'])) {
$location .= ', ';
}
- $countries = get_list_of_countries();
$location .= $countries[$user->country];
}
print_row(get_string("city").":", $location);

0 comments on commit 9052f66

Please sign in to comment.
Something went wrong with that request. Please try again.