From 322c02b896aefd718dd7d3873fd5e6a7aae9009a Mon Sep 17 00:00:00 2001 From: Matthias Schlun Date: Thu, 23 May 2024 11:03:17 +0200 Subject: [PATCH] BUG [4026] move the check into the isMountPointValid method --- Classes/IndexQueue/Initializer/Page.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/IndexQueue/Initializer/Page.php b/Classes/IndexQueue/Initializer/Page.php index 979c942714..62b76eee47 100644 --- a/Classes/IndexQueue/Initializer/Page.php +++ b/Classes/IndexQueue/Initializer/Page.php @@ -110,7 +110,7 @@ protected function initializeMountPointPages(): bool ); foreach ($mountPoints as $mountPoint) { - if (!empty($mountPoint['mountPageOverlayed']) && !$this->isMountPointValid($mountPoint)) { + if (!$this->isMountPointValid($mountPoint)) { continue; } @@ -161,7 +161,7 @@ protected function isMountPointValid(array $mountPoint): bool { $isValidMountPage = true; - if (empty($mountPoint['mountPageSource'])) { + if (!empty($mountPoint['mountPageOverlayed']) && empty($mountPoint['mountPageSource'])) { $isValidMountPage = false; $flashMessage = GeneralUtility::makeInstance( @@ -174,7 +174,7 @@ protected function isMountPointValid(array $mountPoint): bool $this->flashMessageQueue->addMessage($flashMessage); } - if (!$this->mountedPageExists($mountPoint['mountPageSource'])) { + if (!empty($mountPoint['mountPageOverlayed']) && !$this->mountedPageExists($mountPoint['mountPageSource'])) { $isValidMountPage = false; $flashMessage = GeneralUtility::makeInstance(