Fix condition in UserStateCondition
authorMatthias Schmidt <gravatronics@live.com>
Tue, 20 Dec 2016 20:06:46 +0000 (21:06 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 20 Dec 2016 20:06:50 +0000 (21:06 +0100)
wcfsetup/install/files/lib/system/condition/UserStateCondition.class.php

index 9fd4a29c879b24aa593170243b4db09e73a6e252..abdb982d58b9ba0bf72bcfdf5f643a54d389fe79 100644 (file)
@@ -59,7 +59,7 @@ class UserStateCondition extends AbstractSingleFieldCondition implements IConten
                        $objectList->getConditionBuilder()->add('user_table.banned = ?', [$conditionData['userIsBanned']]);
                }
                
-               if ($conditionData['userIsEnabled']) {
+               if (isset($conditionData['userIsEnabled'])) {
                        if ($conditionData['userIsEnabled']) {
                                $objectList->getConditionBuilder()->add('user_table.activationCode = ?', [0]);
                        }