From e2db7f8e3576bbac65e7325f3028f7541c857418 Mon Sep 17 00:00:00 2001
From: Matthias Vogel <noreply@example.com>
Date: Thu, 17 Nov 2022 08:56:51 +0000
Subject: [PATCH] [BUGFIX] Avoid undefined array key "title" in BackendUtility

Releases: main, 11.5
Resolves: #99115
Change-Id: I7860824c5377896f94f2ee34b281bf69bae251a1
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76658
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
---
 typo3/sysext/backend/Classes/Utility/BackendUtility.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typo3/sysext/backend/Classes/Utility/BackendUtility.php b/typo3/sysext/backend/Classes/Utility/BackendUtility.php
index 96077763296d..f3b49d186a45 100644
--- a/typo3/sysext/backend/Classes/Utility/BackendUtility.php
+++ b/typo3/sysext/backend/Classes/Utility/BackendUtility.php
@@ -1148,7 +1148,7 @@ class BackendUtility
                     $label = self::getRecordPath((int)$row['mount_pid'], $perms_clause, 20);
                 } else {
                     $lRec = self::getRecordWSOL('pages', (int)$row['mount_pid'], 'title');
-                    $label = $lRec['title'] . ' (id=' . $row['mount_pid'] . ')';
+                    $label = ($lRec['title'] ?? '') . ' (id=' . $row['mount_pid'] . ')';
                 }
                 $parts[] = $lang->sL($GLOBALS['TCA']['pages']['columns']['mount_pid']['label']) . ' ' . $label;
                 if ($row['mount_pid_ol'] ?? 0) {
-- 
GitLab