[TYPO3-dev] arrayToLogString
Martin Kutschker
Martin.Kutschker at n0spam-blackbox.net
Mon Apr 7 09:51:52 CEST 2008
Dan Osipov schrieb:
> I am looking at the arrayToLogString function in t3lib_div. The first
> parameter is array $arr, which MUST be an array. However, the second
> line of the function checks that $arr is an array.
>
> When using the list module in DAM on 4.2 RC1, there is an error, where
> the parameter passed is not an array, but a string. This causes a fatal
> error.
>
> This seems strange to me.
Why? The type "hinting" of PHP throws an error and this is by design. The
first parameter has to be an array ansd this is it. of course the is_array
check is unnecessary.
> Should I submit a bug report/fix?
Yes, but for DAM.
Masi
More information about the TYPO3-dev
mailing list