[BUGFIX] Use strict comparison for EXT:mediace arrays
[Packages/TYPO3.CMS.git] / typo3 / sysext / mediace / Classes / ContentObject / ShockwaveFlashObjectContentObject.php
index 2fcdaf7..b514f7e 100644 (file)
@@ -86,15 +86,15 @@ class ShockwaveFlashObjectContentObject extends \TYPO3\CMS\Frontend\ContentObjec
                                \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($classRef, $conf, $this);
                        }
                }
-               if (is_array($conf['flashvars.'])) {
+               if (is_array($conf['flashvars.']) && is_array($typeConf['mapping.']['flashvars.'])) {
                        ArrayUtility::remapArrayKeys($conf['flashvars.'], $typeConf['mapping.']['flashvars.']);
                }
                $flashvars = 'var flashvars = ' . (count($conf['flashvars.']) ? json_encode($conf['flashvars.']) : '{}') . ';';
-               if (is_array($conf['params.'])) {
+               if (is_array($conf['params.']) && is_array($typeConf['mapping.']['params.'])) {
                        ArrayUtility::remapArrayKeys($conf['params.'], $typeConf['mapping.']['params.']);
                }
                $params = 'var params = ' . (count($conf['params.']) ? json_encode($conf['params.']) : '{}') . ';';
-               if (is_array($conf['attributes.'])) {
+               if (is_array($conf['attributes.']) && is_array($typeConf['attributes.']['params.'])) {
                        ArrayUtility::remapArrayKeys($conf['attributes.'], $typeConf['attributes.']['params.']);
                }
                $attributes = 'var attributes = ' . (count($conf['attributes.']) ? json_encode($conf['attributes.']) : '{}') . ';';