[TASK] Use better implementation for array check
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / ContentObject / ContentObjectRenderer.php
index e3dad0f..3a1967d 100644 (file)
@@ -7008,7 +7008,7 @@ class ContentObjectRenderer {
                        $old_conf = $confArr[$prop . '.'];
                        list($name, $conf) = $cF->getVal($key, $GLOBALS['TSFE']->tmpl->setup);
                        if (is_array($old_conf) && count($old_conf)) {
-                               $conf = array_replace_recursive(is_array($conf) ? $conf : array(), $old_conf);
+                               $conf = is_array($conf) ? array_replace_recursive($conf, $old_conf) : $old_conf;
                        }
                        $confArr[$prop . '.'] = $conf;
                }