From 6c82fd5ce16f0c9320faea8561650ae40dbb1567 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 22 Jun 2015 18:26:47 +0200 Subject: [PATCH] Fixed broken language drop-down --- wcfsetup/install/files/lib/form/SettingsForm.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } } -- 2.20.1