[TYPO3-core] RFC: Bug #4888 - Invalid argument supplied for foreach() in t3lib/class.t3lib_install.php on line 392

Thomas Hempel thomas at work.de
Thu Aug 23 11:26:58 CEST 2007


> Problem:
> The variable $cfg['keys'] is treated as an array but can be an empty string.
> When treating the variable as an array it is not checked if the variable is
> indeed an array. 
> 
> Solution:
> Check if $cfg['keys'] is an array before running it through foreach.
> 
> Comments:
> See attached patch.
> 
> Bugtracker reference:
> http://bugs.typo3.org/view.php?id=4888
> 
> Branch:
> Trunk, 4.1, 4.0
+1 after reading the patch


Greets,
Thomas

-- 
typo3-unleashed.net


More information about the TYPO3-team-core mailing list