[TYPO3-core] RFC: small enhancement to t3lib_div::arrayToLogString()
Martin Kutschker
Martin.Kutschker at n0spam-blackbox.net
Thu Jun 8 17:58:10 CEST 2006
Martin Kutschker schrieb:
> Hi!
>
> Problem: the inline doc says that argument $valueList may be either an
> array or a string (comma delimited list). Also the docs says that an
> empty list means "all array keys". But only an empty array, not an empty
> string, is accepted. This is a bit annoying/confusing.
>
> Solution: use t3lib_div::trimExplode() instead of explode(). The former
> may ignore empty keys, but the latter will always return an array with
> at least one element (an empty string).
>
> The patch also moves count() outside of the loop and uses || instead of
> AND/OR which is more in sync with the usual TYPO3 code.
Committed to HEAD and TYPO3_4-0.
Masi
More information about the TYPO3-team-core
mailing list