Skip to content

Commit

Permalink
BUG [4026] move the check into the isMountPointValid method
Browse files Browse the repository at this point in the history
  • Loading branch information
derMatze82 authored and dkd-kaehm committed Jun 6, 2024
1 parent d8279d7 commit 322c02b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/IndexQueue/Initializer/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected function initializeMountPointPages(): bool
);

foreach ($mountPoints as $mountPoint) {
if (!empty($mountPoint['mountPageOverlayed']) && !$this->isMountPointValid($mountPoint)) {
if (!$this->isMountPointValid($mountPoint)) {
continue;
}

Expand Down Expand Up @@ -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(
Expand All @@ -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(
Expand Down

0 comments on commit 322c02b

Please sign in to comment.