[TASK] Optimize invocation of cObj::checkIf
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / ContentObject / Menu / ImageMenuContentObject.php
index 2e233e2..eba9729 100644 (file)
@@ -149,7 +149,7 @@ class ImageMenuContentObject extends \TYPO3\CMS\Frontend\ContentObject\Menu\Abst
                                                                        /** @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $cObj */
                                                                        $cObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
                                                                        $cObj->start($cObjData, 'pages');
-                                                                       if (!$cObj->checkIf($theValArr['if.'])) {
+                                                                       if (!empty($theValArr['if.']) && !$cObj->checkIf($theValArr['if.'])) {
                                                                                $setObjFlag = 0;
                                                                        }
                                                                        unset($theValArr['if.']);