From: Marcel Werk Date: Mon, 22 Jun 2015 16:26:47 +0000 (+0200) Subject: Fixed broken language drop-down X-Git-Tag: 2.1.5~15 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6c82fd5ce16f0c9320faea8561650ae40dbb1567;p=GitHub%2FWoltLab%2FWCF.git Fixed broken language drop-down --- diff --git a/wcfsetup/install/files/lib/form/SettingsForm.class.php b/wcfsetup/install/files/lib/form/SettingsForm.class.php index a730b58329..a29b1741e9 100644 --- a/wcfsetup/install/files/lib/form/SettingsForm.class.php +++ b/wcfsetup/install/files/lib/form/SettingsForm.class.php @@ -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; } }