diff --git a/typo3/sysext/backend/Classes/View/BackendLayoutView.php b/typo3/sysext/backend/Classes/View/BackendLayoutView.php index 9218ad08ffcfa787e7e11944e3cb54bc4348a507..c65ba163a7330646e16a3f6384a2fcb71661227d 100644 --- a/typo3/sysext/backend/Classes/View/BackendLayoutView.php +++ b/typo3/sysext/backend/Classes/View/BackendLayoutView.php @@ -109,6 +109,10 @@ class BackendLayoutView implements SingletonInterface */ protected function determinePageId($tableName, array $data) { + if (empty($data)) { + return false; + } + if (str_starts_with((string)$data['uid'], 'NEW')) { // negative uid_pid values of content elements indicate that the element // has been inserted after an existing element so there is no pid to get diff --git a/typo3/sysext/info/Classes/Controller/PageInformationController.php b/typo3/sysext/info/Classes/Controller/PageInformationController.php index e62a4372574191df8ba48b3de536a4dbc3e4056a..0b0af38a25b28d7721f3253a482e73f91285b21c 100644 --- a/typo3/sysext/info/Classes/Controller/PageInformationController.php +++ b/typo3/sysext/info/Classes/Controller/PageInformationController.php @@ -536,8 +536,8 @@ class PageInformationController extends InfoModuleController $this->backendLayoutView->addBackendLayoutItems($configuration); $backendLayouts = []; foreach ($configuration['items'] ?? [] as $backendLayout) { - if (($backendLayout[0] ?? false) && ($backendLayout[1] ?? false)) { - $backendLayouts[$backendLayout[1]] = $backendLayout[0]; + if (($backendLayout['label'] ?? false) && ($backendLayout['value'] ?? false)) { + $backendLayouts[$backendLayout['value']] = $backendLayout['label']; } } return $backendLayouts;