From: Matthias Schmidt Date: Sat, 16 May 2015 08:45:29 +0000 (+0200) Subject: Correct parameter name X-Git-Tag: 2.1.4~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d862eb9b7901b59718ba245e6ba8e9e832506a58;p=GitHub%2FWoltLab%2FWCF.git Correct parameter name --- 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)) {