]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-15251, fix country field in user/view.php, merged from MOODLE_19_STABLE"
authordongsheng <dongsheng>
Mon, 16 Jun 2008 02:14:59 +0000 (02:14 +0000)
committerdongsheng <dongsheng>
Mon, 16 Jun 2008 02:14:59 +0000 (02:14 +0000)
user/view.php

index 2e829f54dfc8eedf36300d77c7bc8517e07df7a5..c9d37a73458b1b0380fc5bc4d5782614fb28a05a 100644 (file)
         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);