From fe580a7636f7f9e39e069cb8c2bb95fb1f36e378 Mon Sep 17 00:00:00 2001 From: Hannes Bochmann Date: Mon, 20 Jan 2025 15:38:36 +0100 Subject: [PATCH] Bugfix fix renderer in BE context --- Classes/Twig/RendererTwig.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Classes/Twig/RendererTwig.php b/Classes/Twig/RendererTwig.php index 871fc51..40312a5 100644 --- a/Classes/Twig/RendererTwig.php +++ b/Classes/Twig/RendererTwig.php @@ -83,9 +83,7 @@ public function __construct( */ protected $fallbackTemplate = '', ) { - if (isset($GLOBALS['TYPO3_REQUEST']->getAttribute('frontend.typoscript')->getSetupArray()['lib.']['tx_t3twig.'])) { - $this->conf = $GLOBALS['TYPO3_REQUEST']->getAttribute('frontend.typoscript')->getSetupArray()['lib.']['tx_t3twig.']; - } + $this->conf = $GLOBALS['TYPO3_REQUEST']?->getAttribute('frontend.typoscript')?->getSetupArray()['lib.']['tx_t3twig.'] ?? []; } /**