Correct parameter name
authorMatthias Schmidt <gravatronics@live.com>
Sat, 16 May 2015 08:45:29 +0000 (10:45 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 16 May 2015 08:45:29 +0000 (10:45 +0200)
wcfsetup/install/files/lib/system/condition/ConditionHandler.class.php

index 2b61e2d2a13fc21863977b29bc43280a3470a996..a18348b00138a53408bf7ac306306c072845981d 100644 (file)
@@ -52,10 +52,10 @@ class ConditionHandler extends SingletonFactory {
         * Deletes all conditions of the objects with the given ids.
         * 
         * @param       string                  $definitionName
-        * @param       array<integer>          $objectID
+        * @param       array<integer>          $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)) {