Skip to content

Commit

Permalink
[BUGFIX] Avoid warning on undefined array key
Browse files Browse the repository at this point in the history
Close: #1929
  • Loading branch information
NamelessCoder committed Jan 27, 2025
1 parent e84af96 commit 8cafb84
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Classes/Service/AssetService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
}
}

0 comments on commit 8cafb84

Please sign in to comment.