From: Alexander Ebert Date: Sun, 26 Feb 2012 16:58:35 +0000 (+0100) Subject: Fixed adding of users X-Git-Tag: 2.0.0_Beta_1~1304 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=49eab4d22dac23859b76060dc069223b0d719649;p=GitHub%2FWoltLab%2FWCF.git Fixed adding of users --- diff --git a/wcfsetup/install/files/lib/data/user/option/UserOption.class.php b/wcfsetup/install/files/lib/data/user/option/UserOption.class.php index 306857a716..cbb507d357 100644 --- a/wcfsetup/install/files/lib/data/user/option/UserOption.class.php +++ b/wcfsetup/install/files/lib/data/user/option/UserOption.class.php @@ -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; } }