From: Matthias Schmidt Date: Sun, 8 Dec 2019 08:41:44 +0000 (+0100) Subject: Ignore non-IObjectListCondition box controller conditions X-Git-Tag: 5.2.0_RC_1~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f4cf6a1d8d89e2e49c36c55f1e34797061ae7668;p=GitHub%2FWoltLab%2FWCF.git Ignore non-IObjectListCondition box controller conditions … for object filtering --- diff --git a/wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php b/wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php index 65607554a1..9e62b923df 100644 --- a/wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php @@ -5,6 +5,7 @@ use wcf\data\object\type\ObjectType; use wcf\data\object\type\ObjectTypeCache; use wcf\data\DatabaseObjectList; use wcf\system\condition\ConditionHandler; +use wcf\system\condition\ICondition; use wcf\system\condition\IObjectListCondition; use wcf\system\event\EventHandler; use wcf\system\exception\UserInputException; @@ -314,9 +315,11 @@ abstract class AbstractDatabaseObjectListBoxController extends AbstractBoxContro if ($this->conditionDefinition) { foreach ($this->box->getConditions() as $condition) { - /** @var IObjectListCondition $processor */ + /** @var ICondition $processor */ $processor = $condition->getObjectType()->getProcessor(); - $processor->addObjectListCondition($this->objectList, $condition->conditionData); + if ($processor instanceof IObjectListCondition) { + $processor->addObjectListCondition($this->objectList, $condition->conditionData); + } } }