Project

General

Profile

Actions

Bug #23576

closed

implodeTSParams(): numeric keys will be renumbered

Added by Dirk Wildt about 14 years ago. Updated over 10 years ago.

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

Also available in: Atom PDF