Fixed bug #496334
authorthomppj <thomppj@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 23 Dec 2001 22:40:02 +0000 (22:40 +0000)
committerthomppj <thomppj@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 23 Dec 2001 22:40:02 +0000 (22:40 +0000)
http://sf.net/tracker/?func=detail&atid=100311&aid=496334&group_id=311

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1897 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/options_display.php

index 75184af..784b348 100644 (file)
@@ -48,12 +48,14 @@ function load_optpage_data_display() {
         'save'    => 'save_option_theme'
     );
 
-    $language_values = array('');
+    $language_values = array();
     foreach ($languages as $lang_key => $lang_attributes) {
         if (isset($lang_attributes['NAME'])) {
-            $language_values[$lang_key] = $lang_attributes['NAME'];
+            $language_values[$lang_attributes['NAME']] = $lang_key;
         }
     }
+    asort($language_values);
+    $language_values = array_flip($language_values);
     $optvals[SMOPT_GRP_GENERAL][] = array(
         'name'    => 'language',
         'caption' => _("Language"),