From d862eb9b7901b59718ba245e6ba8e9e832506a58 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 16 May 2015 10:45:29 +0200 Subject: [PATCH] Correct parameter name --- .../files/lib/system/condition/ConditionHandler.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/lib/system/condition/ConditionHandler.class.php b/wcfsetup/install/files/lib/system/condition/ConditionHandler.class.php index 2b61e2d2a1..a18348b001 100644 --- a/wcfsetup/install/files/lib/system/condition/ConditionHandler.class.php +++ b/wcfsetup/install/files/lib/system/condition/ConditionHandler.class.php @@ -52,10 +52,10 @@ class ConditionHandler extends SingletonFactory { * Deletes all conditions of the objects with the given ids. * * @param string $definitionName - * @param array $objectID + * @param array $objectIDs */ - public function deleteConditions($definitionName, array $objectID) { - if (empty($objectID)) return; + public function deleteConditions($definitionName, array $objectIDs) { + if (empty($objectIDs)) return; $definition = ObjectTypeCache::getInstance()->getDefinitionByName($definitionName); if ($definition === null) { @@ -72,7 +72,7 @@ class ConditionHandler extends SingletonFactory { $conditionList = new ConditionList(); $conditionList->getConditionBuilder()->add('objectTypeID IN (?)', array($objectTypeIDs)); - $conditionList->getConditionBuilder()->add('objectID IN (?)', array($objectID)); + $conditionList->getConditionBuilder()->add('objectID IN (?)', array($objectIDs)); $conditionList->readObjects(); if (count($conditionList)) { -- 2.20.1