[TYPO3-core] RFC: uninitialized variables code cleanup

René Fritz rene at typo3.org
Thu Jan 19 11:04:53 CET 2006


>                         if ($conf[$key]['altImgResource'] ||
> is_array($conf[$key]['altImgResource.']))  {
> -                               if (!is_object($cObj))
> {$cObj=t3lib_div::makeInstance('tslib_cObj');}
> +                               $cObj =
> t3lib_div::makeInstance('tslib_cObj');

I would not remove   if (!is_object($cObj)) but place a 

$cObj = false;
before the while loop in line 1910


All other things: +1

So I will not touch tslib.

René

-- 
René Fritz
TYPO3 Association - Active Member
http://association.typo3.org/


More information about the TYPO3-team-core mailing list