[BUGFIX] Illegal string offset in DataPreprocessor 12/40512/3
authorWouter Wolters <typo3@wouterwolters.nl>
Sun, 21 Jun 2015 16:20:43 +0000 (18:20 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 22 Jun 2015 17:36:20 +0000 (19:36 +0200)
Resolves: #67620
Releases: master, 6.2
Change-Id: Ic8c8d50101cf9e800d4b241b6f74058fe0cc6c0b
Reviewed-on: http://review.typo3.org/40512
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Form/DataPreprocessor.php

index 6f12523..6a1c69b 100644 (file)
@@ -572,7 +572,7 @@ class DataPreprocessor {
                                                }
                                        }
                                } else {
-                                       if (is_array($dsConf['TCEforms']['config']) && is_array($dataValues[$key])) {
+                                       if (is_array($dsConf['TCEforms']['config']) && isset($dataValues[$key]) && is_array($dataValues[$key])) {
                                                foreach ($dataValues[$key] as $vKey => $data) {
                                                        // $data,$fieldConfig,$TSconfig,$table,$row,$field
                                                        list(, , $CVTSconfig, $CVtable, $CVrow, $CVfield) = $pParams;