Actions
Bug #23576
closedimplodeTSParams(): numeric keys will be renumbered
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-09-21
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
implodeTSParams() uses the PHP method array_merge.
But array_merge change numeric keys. They will be renumbered. See link below for further information.
implodeTSParams() works proper with the array operator +.
The line
$implodeParams = array_merge($implodeParams, self::implodeTSParams($val, $k . $kb));
has to replaced by
$implodeParams = $implodeParams + self::implodeTSParams($val, $k . $kb);
Kind regards
Dirk
File: typo3_src-4.4.2/t3lib/class.t3lib_befunc.php
Method: t3lib_BEfunc::implodeTSParams
Further information:
http://de3.php.net/manual/en/function.array-merge.php:
Example #3 Simple array_merge() example: Don't forget that numeric keys will be renumbered!
(issue imported from #M15757)
Actions