Issue Bug Closed

#17152Error in function t3lib_div::array_merge_recursive_overrule

Lukas Rüegg 03/24/07, 15:21 updated 06/27/08, 10:49

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.