From 18b5f4e515c5e66a21e54cb6ec8438d4d1392f95 Mon Sep 17 00:00:00 2001 From: ghermens <47635467+ghermens@users.noreply.github.com> Date: Wed, 17 Jun 2026 16:58:58 +0200 Subject: [PATCH] [BUGFIX] Avoid undefined array key PHP warning --- .../ManipulateBackendLayoutColPosConfigurationForPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Listener/ManipulateBackendLayoutColPosConfigurationForPage.php b/Classes/Listener/ManipulateBackendLayoutColPosConfigurationForPage.php index df6ddb51..5a2b4e2e 100644 --- a/Classes/Listener/ManipulateBackendLayoutColPosConfigurationForPage.php +++ b/Classes/Listener/ManipulateBackendLayoutColPosConfigurationForPage.php @@ -43,8 +43,8 @@ public function __invoke(ManipulateBackendLayoutColPosConfigurationForPageEvent $cType = $container->getCType(); $configuration = $this->tcaRegistry->getContentDefenderConfiguration($cType, $e->colPos); $e->configuration = [ - 'allowedContentTypes' => $configuration['allowedContentTypes'], - 'disallowedContentTypes' => $configuration['disallowedContentTypes'], + 'allowedContentTypes' => $configuration['allowedContentTypes'] ?? '', + 'disallowedContentTypes' => $configuration['disallowedContentTypes'] ?? '', ]; }