From 732cd73dc20aa2ee64af9480e45896d1b25e6779 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 20 Dec 2016 21:06:46 +0100 Subject: [PATCH] Fix condition in UserStateCondition --- .../files/lib/system/condition/UserStateCondition.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); } -- 2.20.1