Fixed adding of users
authorAlexander Ebert <ebert@woltlab.com>
Sun, 26 Feb 2012 16:58:35 +0000 (17:58 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 26 Feb 2012 16:58:35 +0000 (17:58 +0100)
wcfsetup/install/files/lib/data/user/option/UserOption.class.php

index 306857a7166385e56d7d55b4efb1e423521927db..cbb507d357782fc62b2c003dc02872ce41d0c0e6 100644 (file)
@@ -81,7 +81,7 @@ class UserOption extends Option {
                        
                        // check owner state
                        if ($this->visible & Option::VISIBILITY_OWNER) {
-                               if ($this->user->userID == WCF::getUser()->userID) {
+                               if ($this->user !== null && $this->user->userID == WCF::getUser()->userID) {
                                        $isOwner = true;
                                }
                        }