From 415f2e93a656e524d45cabf8f766058c41354676 Mon Sep 17 00:00:00 2001
From: Nikita Hovratov <nikita.h@live.de>
Date: Tue, 14 May 2024 22:32:31 +0200
Subject: [PATCH] [BUGFIX] Fix incorrectly closed empty construct
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Resolves: #103835
Releases: main
Change-Id: I78159e868390047735490a7d179f90adf3e2e83c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84276
Tested-by: Stefan Bürk <stefan@buerk.tech>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Nikita Hovratov <nikita.h@live.de>
Tested-by: core-ci <typo3@b13.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Nikita Hovratov <nikita.h@live.de>
---
 typo3/sysext/core/Classes/Utility/RootlineUtility.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typo3/sysext/core/Classes/Utility/RootlineUtility.php b/typo3/sysext/core/Classes/Utility/RootlineUtility.php
index 1a6e5e884a27..7a033a739c3c 100644
--- a/typo3/sysext/core/Classes/Utility/RootlineUtility.php
+++ b/typo3/sysext/core/Classes/Utility/RootlineUtility.php
@@ -194,7 +194,7 @@ class RootlineUtility
         foreach ($GLOBALS['TCA']['pages']['columns'] as $column => $configuration) {
             if ($this->columnHasRelationToResolve($configuration)) {
                 $resultFieldUidArray[$column] = [];
-                if (!empty($configuration['config']['MM']) && !empty($configuration['config']['MM_opposite_field'] && !empty($configuration['config']['foreign_table']))) {
+                if (!empty($configuration['config']['MM']) && !empty($configuration['config']['MM_opposite_field']) && !empty($configuration['config']['foreign_table'])) {
                     $foreignRelationColumns[] = $column;
                     // This is a solution when multiple fields are on the foreign side in an MM relation to the same local side.
                     // For instance, when there are two category fields in pages.
-- 
GitLab