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

This commit is contained in:
dongsheng
2008-06-16 02:16:42 +00:00
parent 763d96c685
commit 3c14b202eb
+1 -1
View File
@@ -207,11 +207,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);