Fixed bug #3552: Fatal error during backend edit
authorMichael Stucki <michael.stucki@typo3.org>
Tue, 16 Oct 2007 17:35:29 +0000 (17:35 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Tue, 16 Oct 2007 17:35:29 +0000 (17:35 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-1@2574 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tcemain.php

index b438703..e355735 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-10-16  Michael Stucki  <michael@typo3.org>
+
+       * Fixed bug #3552: Fatal error during backend edit
+
 2007-10-16  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
 
        * Fixed bug 4183: Incorrect display in htmlArea RTE of utf-8 labels for colors, classes and fonts defined in PageTSConfig
index 4624b20..5f57a45 100755 (executable)
@@ -2138,7 +2138,11 @@ class t3lib_TCEmain      {
                                                if ($DSelements[$key]['section'])       {
                                                        foreach($dataValues[$key]['el'] as $ik => $el)  {
                                                                $theKey = key($el);
-                                                               if (is_array($dataValues[$key]['el'][$ik][$theKey]['el']))      {
+
+                                                                       // It may happen that an element exists in $dataValues but is missing in $dataValues_current. In this case, just skip the element...
+                                                               $elExists = is_array($dataValues_current[$key]['el'][$ik]);
+
+                                                               if ($elExists && is_array($dataValues[$key]['el'][$ik][$theKey]['el'])) {
                                                                        $this->checkValue_flex_procInData_travDS(
                                                                                        $dataValues[$key]['el'][$ik][$theKey]['el'],
                                                                                        $dataValues_current[$key]['el'][$ik][$theKey]['el'],