Project

General

Profile

Actions

Bug #14919

closed

t3lib_div::array_merge_recursive_overlay cannot overrule arrays with scalars

Added by Jens Scheidtmann almost 19 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2005-08-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

if t3lib_div::array_merge_recursive_overlay is called with an array which contains arrays, the subarrays cannot be overruled by scalar values in the second array, as no code exists for the case that $arr0[$key] is an array, but $arr1[$key] is not.

This is unfortunate as pi_linkTP_keepPiVars(_url) documentation says for its $overrulePIvars parameter: "Further, if a value is a blank string it means the piVar key will not be a part of the link (unset)". As this function uses array_merge_recursive_overlay, one cannot unset a form.

I have included a patch, I hope it is useful despite of my smattering of php arrays . . .

(issue imported from #M1367)


Files

t3lib_div.patch (781 Bytes) t3lib_div.patch Administrator Admin, 2005-08-11 16:18
t3lib_div.good.patch (611 Bytes) t3lib_div.good.patch Administrator Admin, 2005-08-11 16:29
Actions

Also available in: Atom PDF