From 9aa2fbee53d1aee6a3daacca1c8332a0161d04ef Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 10 Apr 2013 20:15:30 +0200 Subject: [PATCH] Fixed handling of admindefaultvalue=0 --- .../plugin/UserGroupOptionPackageInstallationPlugin.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/package/plugin/UserGroupOptionPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/UserGroupOptionPackageInstallationPlugin.class.php index 593103afd3..5767083655 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/UserGroupOptionPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/UserGroupOptionPackageInstallationPlugin.class.php @@ -115,7 +115,7 @@ class UserGroupOptionPackageInstallationPlugin extends AbstractOptionPackageInst $defaultValue )); - if ($adminDefaultValue && $defaultValue != $adminDefaultValue) { + if (isset($option['admindefaultvalue']) && $defaultValue != $adminDefaultValue) { $adminGroupIDs = self::getAdminGroupIDs(); WCF::getDB()->beginTransaction(); -- 2.20.1