[TYPO3-core] RFC #0016467 Missing array check in tt_content
Bjoern Pedersen
bjoern.pedersen at frm2.tum.de
Thu Nov 18 15:27:31 CET 2010
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0016467.patch
Type: text/x-patch
Size: 574 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101118/1872dc0a/attachment.bin>
More information about the TYPO3-team-core
mailing list