Fixed option handler not displaying user values
authorAlexander Ebert <ebert@woltlab.com>
Wed, 30 Nov 2011 15:15:40 +0000 (16:15 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 30 Nov 2011 15:15:40 +0000 (16:15 +0100)
wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php

index 1eef943e3e44d3a8fdc5801b9e5d8b63875edf10..ee50ce36902bc5e56890c1fe6dbbc68e2f9bb38d 100644 (file)
@@ -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};
+               }
        }
        
        /**