[TYPO3-core] RFC #16620: bug: Warnings about performing array functions on non-arrays

Jigal van Hemert jigal at xs4all.nl
Thu Dec 2 18:20:53 CET 2010


Hi,

This is a SVN patch request.

Type: Bugfix

BT reference: http://bugs.typo3.org/view.php?id=16620

Branches: trunk / 4.4

Problem:
The extension advanced_sitemaps reveals some warnings about performing 
array functions on non-arrays in the iconworks functions. These are 
variables which originate in system configurations and can not be 
enforced in the parameter declaration.

Solution:
Add check that variable is in fact an array.

How to test:
Extension advanced_sitemaps (version 1.0.0) produces warnings in system 
log like:
warning: Invalid argument supplied for foreach() in 
/typo3/typo3_src-4.4.4/t3lib/class.t3lib_iconworks.php on line 915
Warning in_array()[<a href='function.in-array'>function.in-array</a>]: 
Wrong datatype for second argument in 
/typo3/typo3_src-4.4.4/t3lib/class.t3lib_iconworks.php on line 826

-- 
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh



More information about the TYPO3-team-core mailing list