[TYPO3-core] RFC: Bug #4888 - Invalid argument supplied for foreach() in t3lib/class.t3lib_install.php on line 392
franz at fholzinger.com
Thu Aug 23 11:13:00 CEST 2007
Andreas Otto writes:
> 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.
> Check if $cfg['keys'] is an array before running it through foreach.
isset($cfg['keys']) could be added too
+1 by comparing the code to the original one (nobrainer)
More information about the TYPO3-team-core