Skip to content

Commit a46e9f1

Browse files
achimfritzAchim Fritz
and
Achim Fritz
authored
[BUGFIX] PHP 8 Array Access (#13)
Co-authored-by: Achim Fritz <[email protected]>
1 parent 40ea91c commit a46e9f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Classes/Middleware/InlineSvgInjector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ protected function isOutputting(ResponseInterface $response): bool
7171
protected function getInlineSvgAsset(): string
7272
{
7373
$assetCollector = GeneralUtility::makeInstance(AssetCollector::class);
74-
$cached = $this->getTypoScriptFrontendController()->config['b13/assetcollector'];
75-
if (!empty($cached['xmlFiles']) && is_array($cached['xmlFiles'])) {
74+
$cached = $this->getTypoScriptFrontendController()->config['b13/assetcollector'] ?? [];
75+
if (!empty($cached['xmlFiles'] ?? null) && is_array($cached['xmlFiles'])) {
7676
$assetCollector->mergeXmlFiles($cached['xmlFiles']);
7777
}
7878
return $assetCollector->buildInlineXmlTag();

0 commit comments

Comments
 (0)