]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8096 fixed country selection
authorskodak <skodak>
Tue, 23 Jan 2007 10:04:59 +0000 (10:04 +0000)
committerskodak <skodak>
Tue, 23 Jan 2007 10:04:59 +0000 (10:04 +0000)
user/edit_form.php

index 444d225292d6ce96abed018ea999659688ac5d2b..0d62646f9f65760a682270d152d8083446577631 100644 (file)
@@ -183,7 +183,7 @@ class user_edit_form extends moodleform {
 
 
         $choices = get_list_of_countries();
-        $choices[0] = get_string('selectacountry').'...';
+        $choices= array(''=>get_string('selectacountry').'...') + $choices;
         $mform->addElement('select', 'country', get_string('selectacountry'), $choices);
         $mform->setType('country', PARAM_ALPHA);
         $mform->addRule('country', $strrequired, 'required', null, 'client');