Fixed handling of admindefaultvalue=0
authorMarcel Werk <burntime@woltlab.com>
Wed, 10 Apr 2013 18:15:30 +0000 (20:15 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 10 Apr 2013 18:15:30 +0000 (20:15 +0200)
wcfsetup/install/files/lib/system/package/plugin/UserGroupOptionPackageInstallationPlugin.class.php

index 593103afd32e6ce581ea05e92709a74829f315f4..57670836556a4906e7de4353f7be58a46110fab1 100644 (file)
@@ -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();