From 8cafb84cdc6d7dc11bf4f3b529b58683cdc5db31 Mon Sep 17 00:00:00 2001 From: Claus Due Date: Mon, 27 Jan 2025 12:51:13 +0100 Subject: [PATCH] [BUGFIX] Avoid warning on undefined array key Close: #1929 --- Classes/Service/AssetService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Classes/Service/AssetService.php b/Classes/Service/AssetService.php index 6da096373..c7fc1cfc0 100644 --- a/Classes/Service/AssetService.php +++ b/Classes/Service/AssetService.php @@ -879,6 +879,9 @@ protected function readCacheDisabledInstructionFromContext(): bool return $hasDisabledInstructionInRequest || $typoScriptFrontendController->no_cache - || (is_array($typoScriptFrontendController->page) && $typoScriptFrontendController->page['no_cache']); + || ( + is_array($typoScriptFrontendController->page) + && ($typoScriptFrontendController->page['no_cache'] ?? false) + ); } }