From 49eab4d22dac23859b76060dc069223b0d719649 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 26 Feb 2012 17:58:35 +0100 Subject: [PATCH] Fixed adding of users --- .../install/files/lib/data/user/option/UserOption.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.20.1