[BUGFIX] Remove unused parameter in array utility
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 18 Aug 2011 18:18:10 +0000 (20:18 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 18 Aug 2011 18:21:40 +0000 (20:21 +0200)
The recursive call in t3lib_utility_Array::filterByValueRecursive()
has a third, but unused parameter.

Change-Id: I33c61e5a4ff0a1d47452bc59bbf6d392a6cf727e
Resolves: #29098
Reviewed-on: http://review.typo3.org/4416
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/utility/class.t3lib_utility_array.php

index b0a9722..91914dc 100644 (file)
@@ -79,7 +79,7 @@ final class t3lib_utility_Array {
                                $resultArray[$key] = $value;
                        } elseif (is_array($value)) {
                                        // self does not work in lambda functions, use t3lib_utility_Array for recursion
-                               $subArrayMatches = t3lib_utility_Array::filterByValueRecursive($needle, $value, $array[$key]);
+                               $subArrayMatches = t3lib_utility_Array::filterByValueRecursive($needle, $value);
                                if (count($subArrayMatches) > 0) {
                                        $resultArray[$key] = $subArrayMatches;
                                }