Fixed broken language drop-down
authorMarcel Werk <burntime@woltlab.com>
Mon, 22 Jun 2015 16:26:47 +0000 (18:26 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 22 Jun 2015 16:26:47 +0000 (18:26 +0200)
wcfsetup/install/files/lib/form/SettingsForm.class.php

index a730b58329a6c8060d78ceb890b10caf2df6d24d..a29b1741e91666cffae271e24e951460c3ffeee1 100644 (file)
@@ -176,7 +176,9 @@ class SettingsForm extends AbstractForm {
                        // static options
                        if ($this->category == 'general') {
                                $this->contentLanguageIDs = WCF::getUser()->getLanguageIDs();
-                               $this->languageID = WCF::getUser()->languageID;
+                               if (isset($this->availableLanguages[WCF::getUser()->languageID])) {
+                                       $this->languageID = WCF::getUser()->languageID;
+                               }
                                $this->styleID = WCF::getUser()->styleID;
                        }
                }