Index: t3lib/class.t3lib_tceforms.php =================================================================== --- t3lib/class.t3lib_tceforms.php (Revision 2585) +++ t3lib/class.t3lib_tceforms.php (Arbeitskopie) @@ -515,9 +515,11 @@ $fields = $this->mergeFieldsWithAddedFields($fields,$this->getFieldsToAdd($table,$row,$typeNum)); // If TCEforms will render a tab menu in the next step, push the name to the tab stack: + $tabIdentString = ''; + $tabIdentStringMD5 = ''; if (strstr($itemList, '--div--') !== false && $this->enableTabMenu && $TCA[$table]['ctrl']['dividers2tabs']) { $tabIdentString = 'TCEforms:'.$table.':'.$row['uid']; - $tabIdentStringMD5 = $GLOBALS['TBE_TEMPLATE']->getDynTabMenuId('TCEforms:'.$table.':'.$row['uid']); + $tabIdentStringMD5 = $GLOBALS['TBE_TEMPLATE']->getDynTabMenuId($tabIdentString); // Remember that were currently working on the general tab: if (isset($fields[0]) && strpos($fields[0], '--div--') !== 0) { $this->pushToDynNestedStack('tab', $tabIdentStringMD5.'-1'); @@ -577,7 +579,7 @@ } else { // Setting alternative title for "General" tab if "--div--" is the very first element. $out_array_meta[$out_sheet]['title'] = $this->sL($parts[1]); // Only add the first tab to the dynNestedStack if there are more tabs: - if (strpos($itemList, '--div--', strlen($fieldInfo))) { + if ($tabIdentString && strpos($itemList, '--div--', strlen($fieldInfo))) { $this->pushToDynNestedStack('tab', $tabIdentStringMD5.'-1'); } }