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

Andreas Otto andreas.otto at dkd.de
Thu Aug 23 10:58:43 CEST 2007


Hi,

This is a SVN patch request.

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


Cheers,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: typo3-bug-4888.diff
Type: text/x-diff
Size: 1328 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070823/88b9e90a/attachment.diff 


More information about the TYPO3-team-core mailing list