[TYPO3-core] RFC: is_array check extension manager

Franz Holzinger franz at fholzinger.com
Wed Aug 15 08:42:24 CEST 2007


Hello Wolfgang, 

this is the wrong isset item I think: 

if (isset($conf['constraints']['conflicts']) && 
is_array($conf['constraints']['conflicts'])) { 

It should be like this: 

if (is_array($conf['constraints']) && 
is_array($conf['constraints']['conflicts'])) { 

>>> as this bugs me every now and then
>>> here's a patch that adds some is_array checks before
>>> foreach (should be common practice ;-))
 

 - Franz


More information about the TYPO3-team-core mailing list