Fixed bug #12064: Warning when edit form is rendered with wizards in backend
authorOliver Hader <oliver.hader@typo3.org>
Fri, 25 Sep 2009 15:44:19 +0000 (15:44 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Fri, 25 Sep 2009 15:44:19 +0000 (15:44 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6055 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tceforms.php

index d5d4f4e..87f332a 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
 
        * Fixed bug #12046: Skinning possibilities are not available with frontend editing
        * Cleanup: Updated NEWS.txt
+       * Fixed bug #12064: Warning when edit form is rendered with wizards in backend
 
 2009-09-25  Benjamin Mack  <benni@typo3.org>
 
index 7d5e97b..25f0400 100644 (file)
@@ -3764,9 +3764,11 @@ class t3lib_TCEforms     {
 
                        // traverse wizards:
                if (is_array($wizConf) && !$this->disableWizards)       {
+                       $parametersOfWizards =& $specConf['wizards']['parameters'];
+
                        foreach($wizConf as $wid => $wConf)     {
                                if (substr($wid,0,1)!='_'
-                                               && (!$wConf['enableByTypeConfig'] || @in_array($wid,$specConf['wizards']['parameters']))
+                                               && (!$wConf['enableByTypeConfig'] || is_array($parametersOfWizards) && in_array($wid, $parametersOfWizards))
                                                && ($RTE || !$wConf['RTEonly'])
                                        )       {