From: Alexander Ebert Date: Wed, 30 Nov 2011 15:15:40 +0000 (+0100) Subject: Fixed option handler not displaying user values X-Git-Tag: 2.0.0_Beta_1~1556 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a889dc85251c4f8f6d34c94d7849b630a4bb9717;p=GitHub%2FWoltLab%2FWCF.git Fixed option handler not displaying user values --- diff --git a/wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php b/wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php index 1eef943e3e..ee50ce3690 100644 --- a/wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php +++ b/wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php @@ -53,16 +53,16 @@ class UserOptionHandler extends OptionHandler { $this->optionValues = array(); $this->user = $user; - foreach ($this->options as $option) { - $userOption = 'userOption' . $option->optionID; - $this->optionValues[$option->optionName] = $this->user->{$userOption}; - } - if (!$this->didInit) { $this->loadActiveOptions($this->categoryName); $this->didInit = true; } + + foreach ($this->options as $option) { + $userOption = 'userOption' . $option->optionID; + $this->optionValues[$option->optionName] = $this->user->{$userOption}; + } } /**