[TYPO3-core] RFC: Bug #8944: PHP-Error in class.em_index.php on line 4333
    Oliver Klee 
    typo3-german-02 at oliverklee.de
       
    Fri Jul 11 11:52:26 CEST 2008
    
    
  
Hi Stefan,
-			foreach($this->CMD as $k => $v) {
-				$content .= '<input type="hidden" name="CMD['.$k.']" value="'.$v.'" 
/>';
+			if (is_array($this->CMD)) {
Why isn't $this->CMD an array in all cases? Instead of this bandaid fix, 
I propose declaring the member variable as array() in the first place 
and use type hinting.
So -1 for this patch.
Oliver
    
    
More information about the TYPO3-team-core
mailing list