Skip to content

Commit 8cafb84

Browse files
committed
[BUGFIX] Avoid warning on undefined array key
Close: #1929
1 parent e84af96 commit 8cafb84

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Classes/Service/AssetService.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,9 @@ protected function readCacheDisabledInstructionFromContext(): bool
879879

880880
return $hasDisabledInstructionInRequest
881881
|| $typoScriptFrontendController->no_cache
882-
|| (is_array($typoScriptFrontendController->page) && $typoScriptFrontendController->page['no_cache']);
882+
|| (
883+
is_array($typoScriptFrontendController->page)
884+
&& ($typoScriptFrontendController->page['no_cache'] ?? false)
885+
);
883886
}
884887
}

0 commit comments

Comments
 (0)