[TYPO3-core] RFC #0016467 Missing array check in tt_content

Sebastian Fischer sf at marketing-factory.de
Fri Nov 19 08:43:48 CET 2010


On 18.11.2010 15:27, Bjoern Pedersen wrote:
> Hi,
>
> This is a SVN patch request.
>
> Type: Bugfix
>
> BT reference: http://bugs.typo3.org/view.php?id=16467
> Branches:
>
> Problem: a count check is not sufficent to check for an array.
>
> Core: Error handler (FE) PHP Warning: array_intersect_key() [<a
> href='function.array-intersect-key'>function.array-intersect-key</a>]:
> Argument #2 is not an array in
> /home/webmaster/frm2/typo3_src_svn/typo3/sysext/cms/tslib/class.tslib_content.php
> line 1946 class.t3lib_error_errorhandler.php, line 148 Download
> 18-11-10 15:11:13 Core: Error handler (FE) PHP Warning: Invalid argument
> supplied for foreach() in
> /home/webmaster/frm2/typo3_src_svn/typo3/sysext/cms/tslib/class.tslib_content.php
> line 1958
>
> Solution:
> add is_array check
>
>
> How to test:
>
> I could not yet identify the source for this problem in typoscript.
>
> Björn

+1 by reading

Greetings
Sebastian


More information about the TYPO3-team-core mailing list