From 4a07b13dbe62109f7c9864eea98c2f9625b195a8 Mon Sep 17 00:00:00 2001 From: Manuel Gschwandtner Date: Mon, 12 Aug 2024 12:34:16 +0200 Subject: [PATCH] ignore php warning if no page is selected via the page tree --- Classes/Controller/Backend/ActionController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Controller/Backend/ActionController.php b/Classes/Controller/Backend/ActionController.php index c3f3f8e8..9ebf6df6 100644 --- a/Classes/Controller/Backend/ActionController.php +++ b/Classes/Controller/Backend/ActionController.php @@ -26,7 +26,7 @@ protected function initializeAction(): void ConfigurationManager::CONFIGURATION_TYPE_FRAMEWORK ); - $pageId = (int)$this->request->getQueryParams()['id'] ?? 1; + $pageId = (int)@$this->request->getQueryParams()['id'] ?? 1; BackendUtility::readPageAccess( $pageId,