[BUGFIX] Illegal string offset in EditDocumentController 17/19717/2
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:09:50 +0000 (00:09 +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/19717
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/alt_doc.php

index 7069975..3369d5d 100644 (file)
@@ -757,7 +757,7 @@ class SC_alt_doc {
                                                                                // 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]);
                                                                        }