From: Marcel Werk Date: Mon, 9 Feb 2015 23:57:59 +0000 (+0100) Subject: Fixed error message during user group creation X-Git-Tag: 2.1.0_RC_1~48 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=15a4e60c98465ff4f19bd9c3fd232a816ff56ceb;p=GitHub%2FWoltLab%2FWCF.git Fixed error message during user group creation --- 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()) {