Updated copyright notices to show "2004"
[Packages/TYPO3.CMS.git] / typo3 / wizard_forms.php
index 64a300f..205a566 100755 (executable)
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *  
-*  (c) 1999-2003 Kasper Skaarhoj (kasper@typo3.com)
+*  (c) 1999-2004 Kasper Skaarhoj (kasper@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is 
@@ -739,7 +739,7 @@ class SC_wizard_forms {
                                        if ($vv['type']=='select' || $vv['type']=='radio')      {
                                                $thisLine[2]=str_replace(chr(10),', ',str_replace(',','',$vv['options']));
                                        } elseif ($vv['type']=='check') {
-                                               if ($vv['checked'])     $thisLine[2]=1;
+                                               if ($vv['default'])     $thisLine[2]=1;
                                        } elseif (strcmp(trim($vv['default']),'')) {
                                                $thisLine[2]=$vv['default'];
                                        }
@@ -917,8 +917,7 @@ $SOBE = t3lib_div::makeInstance('SC_wizard_forms');
 $SOBE->init();
 
 // Include files?
-reset($SOBE->include_once);    
-while(list(,$INC_FILE)=each($SOBE->include_once))      {include_once($INC_FILE);}
+foreach($SOBE->include_once as $INC_FILE)      include_once($INC_FILE);
 
 $SOBE->main();
 $SOBE->printContent();