From: Matthias Schmidt Date: Tue, 20 Dec 2016 20:06:46 +0000 (+0100) Subject: Fix condition in UserStateCondition X-Git-Tag: 3.0.0_RC_2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=732cd73dc20aa2ee64af9480e45896d1b25e6779;p=GitHub%2FWoltLab%2FWCF.git Fix condition in UserStateCondition --- diff --git a/wcfsetup/install/files/lib/system/condition/UserStateCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserStateCondition.class.php index 9fd4a29c87..abdb982d58 100644 --- a/wcfsetup/install/files/lib/system/condition/UserStateCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserStateCondition.class.php @@ -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]); }