[BUGFIX] Sanity check is missing within MediaContentObject 12/45112/3
authorThilo Schumann <typo3@pingu.info>
Thu, 3 Dec 2015 16:10:29 +0000 (17:10 +0100)
committerXavier Perseguers <xavier@typo3.org>
Fri, 4 Dec 2015 12:43:00 +0000 (13:43 +0100)
Resolves: #67757
Releases: 6.2
Change-Id: I120ce5214ddb46891278adfaaaec19a897e85434
Reviewed-on: https://review.typo3.org/45112
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Xavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers <xavier@typo3.org>
typo3/sysext/frontend/Classes/ContentObject/MediaContentObject.php

index dc88ba5..f023e1b 100644 (file)
@@ -285,9 +285,13 @@ class MediaContentObject extends \TYPO3\CMS\Frontend\ContentObject\AbstractConte
                $flexValue = NULL;
                $flexKey = 'mm' . ucfirst($key);
                if ($sectionKey === NULL) {
-                       $flexValue = $confArray['parameter.'][$flexKey];
+                       if (isset($confArray['parameter.'][$flexKey])) {
+                               $flexValue = $confArray['parameter.'][$flexKey];
+                       }
                } else {
-                       $flexValue = $confArray['parameter.'][$flexKey][$sectionKey];
+                       if (isset($confArray['parameter.'][$flexKey][$sectionKey])) {
+                               $flexValue = $confArray['parameter.'][$flexKey][$sectionKey];
+                       }
                }
                if ($flexValue === NULL) {
                        $flexValue = isset($confArray[$key . '.']) ? $this->cObj->stdWrap($confArray[$key], $confArray[$key . '.']) : $confArray[$key];