Fixed undefined index exception
authorMarcel Werk <burntime@woltlab.com>
Tue, 3 Jan 2017 12:10:42 +0000 (13:10 +0100)
committerMarcel Werk <burntime@woltlab.com>
Tue, 3 Jan 2017 12:10:53 +0000 (13:10 +0100)
wcfsetup/install/files/lib/system/condition/AbstractSelectCondition.class.php

index d4adf31ef1146cb90941115ea48564b98f67dd74..f3b59f01985cf9ebccafb7655789296ece5f1a6f 100644 (file)
@@ -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);
        }
        
        /**