From 952c64825186b34b116e64929e1304c75255cf11 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal <andy@pixelde.su> Date: Sat, 1 Apr 2023 20:40:14 +0200 Subject: [PATCH] [BUGFIX] Prevent undefined array key in BackendUtility Resolves: #100379 Releases: main, 11.5 Change-Id: If772e0ba8d2d10a9aeb86af519c1c4f05c0ef3b4 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78357 Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: core-ci <typo3@b13.com> 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 a152db7458c4..af0275bea4b4 100644 --- a/typo3/sysext/backend/Classes/Utility/BackendUtility.php +++ b/typo3/sysext/backend/Classes/Utility/BackendUtility.php @@ -1156,7 +1156,7 @@ class BackendUtility $parts[] = $lang->sL($GLOBALS['TCA']['pages']['columns']['url']['label'] ?? '') . ' ' . ($row['url'] ?? ''); } elseif ($row['doktype'] == PageRepository::DOKTYPE_SHORTCUT) { if ($perms_clause) { - $label = self::getRecordPath((int)$row['shortcut'], $perms_clause, 20); + $label = self::getRecordPath((int)($row['shortcut'] ?? 0), $perms_clause, 20); } else { $row['shortcut'] = (int)($row['shortcut'] ?? 0); $lRec = self::getRecordWSOL('pages', $row['shortcut'], 'title'); -- GitLab