From: Marcel Werk Date: Wed, 10 Apr 2013 18:15:30 +0000 (+0200) Subject: Fixed handling of admindefaultvalue=0 X-Git-Tag: 2.0.0_Beta_1~387 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9aa2fbee53d1aee6a3daacca1c8332a0161d04ef;p=GitHub%2FWoltLab%2FWCF.git Fixed handling of admindefaultvalue=0 --- 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();