From 15a4e60c98465ff4f19bd9c3fd232a816ff56ceb Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 10 Feb 2015 00:57:59 +0100 Subject: [PATCH] Fixed error message during user group creation --- .../system/option/user/group/UserGroupOptionHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/option/user/group/UserGroupOptionHandler.class.php b/wcfsetup/install/files/lib/system/option/user/group/UserGroupOptionHandler.class.php index e728106868..b27cf23f57 100644 --- a/wcfsetup/install/files/lib/system/option/user/group/UserGroupOptionHandler.class.php +++ b/wcfsetup/install/files/lib/system/option/user/group/UserGroupOptionHandler.class.php @@ -130,7 +130,7 @@ class UserGroupOptionHandler extends OptionHandler { throw new UserInputException($option->optionName, 'exceedsOwnPermission'); } } - else if ($option->optionName == 'admin.user.accessibleGroups' && $this->group->isAdminGroup()) { + else if ($option->optionName == 'admin.user.accessibleGroups' && $this->group !== null && $this->group->isAdminGroup()) { $hasOtherAdminGroup = false; foreach (UserGroup::getGroupsByType() as $userGroup) { if ($userGroup->groupID != $this->group->groupID && $userGroup->isAdminGroup()) { -- 2.20.1