Updating user options now working
authorAlexander Ebert <ebert@woltlab.com>
Wed, 30 Nov 2011 14:05:19 +0000 (15:05 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 30 Nov 2011 14:05:19 +0000 (15:05 +0100)
wcfsetup/install/files/lib/data/user/UserAction.class.php

index 14c8454b1d0606cd60c6e0694228b94221a162a2..560913a818c5f596fc04ccd82f661259a9b57bf5 100644 (file)
@@ -121,7 +121,14 @@ class UserAction extends AbstractDatabaseObjectAction {
         * @see wcf\data\AbstractDatabaseObjectAction::update()
         */
        public function update() {
-               parent::update();
+               if (isset($this->parameters['data'])) {
+                       parent::update();
+               }
+               else {
+                       if (!count($this->objects)) {
+                               $this->readObjects();
+                       }
+               }
                
                $groupIDs = (isset($this->parameters['groups'])) ? $this->parameters['groups'] : array();
                $removeGroups = (isset($this->parameters['removeGroups'])) ? $this->parameters['removeGroups'] : array();