From 5b80f2efc085553c8d05ca441adca67577b0e5bc Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 3 Jan 2017 13:10:42 +0100 Subject: [PATCH] Fixed undefined index exception --- .../lib/system/condition/AbstractSelectCondition.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/condition/AbstractSelectCondition.class.php b/wcfsetup/install/files/lib/system/condition/AbstractSelectCondition.class.php index d4adf31ef1..f3b59f0198 100644 --- a/wcfsetup/install/files/lib/system/condition/AbstractSelectCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/AbstractSelectCondition.class.php @@ -122,7 +122,7 @@ abstract class AbstractSelectCondition extends AbstractSingleFieldCondition { * @inheritDoc */ public function setData(Condition $condition) { - $this->fieldValue = $condition->conditionData[$this->fieldName]; + $this->fieldValue = (isset($condition->conditionData[$this->fieldName]) ? $condition->conditionData[$this->fieldName] : self::NO_SELECTION_VALUE); } /** -- 2.20.1