Fixed bug #6581: Fatal error in TCEForms: Fatal error: Cannot use string offset as...
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_tceforms.php
index 38bbc25..154e2d5 100755 (executable)
@@ -2245,7 +2245,6 @@ class t3lib_TCEforms      {
 
                                $tabParts = array();
                                foreach ($tabsToTraverse as $sheet)     {
-                                       $sheetCfg = $dataStructArray['sheets'][$sheet];
                                        list ($dataStruct, $sheet) = t3lib_div::resolveSheetDefInDS($dataStructArray,$sheet);
 
                                                // Render sheet:
@@ -2273,9 +2272,9 @@ class t3lib_TCEforms      {
 
                                                // Add to tab:
                                        $tabParts[] = array(
-                                               'label' => ($sheetCfg['ROOT']['TCEforms']['sheetTitle'] ? $this->sL($sheetCfg['ROOT']['TCEforms']['sheetTitle']) : $sheet),
-                                               'description' => ($sheetCfg['ROOT']['TCEforms']['sheetDescription'] ? $this->sL($sheetCfg['ROOT']['TCEforms']['sheetDescription']) : ''),
-                                               'linkTitle' => ($sheetCfg['ROOT']['TCEforms']['sheetShortDescr'] ? $this->sL($sheetCfg['ROOT']['TCEforms']['sheetShortDescr']) : ''),
+                                               'label' => ($dataStruct['ROOT']['TCEforms']['sheetTitle'] ? $this->sL($dataStruct['ROOT']['TCEforms']['sheetTitle']) : $sheet),
+                                               'description' => ($dataStruct['ROOT']['TCEforms']['sheetDescription'] ? $this->sL($dataStruct['ROOT']['TCEforms']['sheetDescription']) : ''),
+                                               'linkTitle' => ($dataStruct['ROOT']['TCEforms']['sheetShortDescr'] ? $this->sL($dataStruct['ROOT']['TCEforms']['sheetShortDescr']) : ''),
                                                'content' => $sheetContent
                                        );
                                }