Bug #17152
closedError in function t3lib_div::array_merge_recursive_overrule
0%
Description
The function t3lib_div::array_merge_recursive_overrule recursivly merges 2 arrays. on line 1657 The recursion however does not pass the optional 4th parameter so that using the function on a mutlidimensional array ignores the setting $includeEmtpyValues (i.e. $includeEmtpyValues is always true)
Line 1657 should read:
$arr0[$key] = t3lib_div::array_merge_recursive_overrule($arr0[$key],$arr1[$key],$notAddKeys,$includeEmtpyValues);
instead of:
$arr0[$key] = t3lib_div::array_merge_recursive_overrule($arr0[$key],$arr1[$key],$notAddKeys);
PS. I couldn't find an appropriate category for this issue. It's not backend, that's for sure. How about plain 'API' as a category?
(issue imported from #M5288)
Files
Updated by Oliver Hader over 17 years ago
I can confirm this. The $includeEmtpyValues was only used on the first level but not in recursion. The attached patch solves this as suggested by Simon.