[BUGFIX] Illegal string offset in EditDocumentController 36/19636/3
authorPhilipp Gampe <philipp.gampe@typo3.org>
Fri, 5 Apr 2013 22:22:34 +0000 (00:22 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 6 Apr 2013 22:02:35 +0000 (00:02 +0200)
If a content element is opened from the opendocs module, a warning is
shown because overrideVals is used without checking if it is an array.

Fixes: #46965
Releases: 6.1, 6.0, 4.7, 4.5
Change-Id: If25b21121708226594cfac6436278c297f32ddb9
Reviewed-on: https://review.typo3.org/19636
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/backend/Classes/Controller/EditDocumentController.php

index b60a49d..5d32174 100644 (file)
@@ -841,7 +841,7 @@ class EditDocumentController {
                                                                        // Setting variables in TCEforms object:
                                                                        $this->tceforms->hiddenFieldList = '';
                                                                        $this->tceforms->globalShowHelp = $this->disHelp ? 0 : 1;
-                                                                       if (is_array($this->overrideVals[$table])) {
+                                                                       if (is_array($this->overrideVals) && is_array($this->overrideVals[$table])) {
                                                                                $this->tceforms->hiddenFieldListArr = array_keys($this->overrideVals[$table]);
                                                                        }
                                                                        // Register default language labels, if any: