From 1a12448e0a027980da9a1a522f73fd99a4df7af5 Mon Sep 17 00:00:00 2001 From: Sascha Zander Date: Thu, 23 Apr 2026 16:55:06 +0200 Subject: [PATCH] Make sure the $GLOBALS['TSFE'] is set before using it --- Classes/Driver/AmazonS3Driver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Driver/AmazonS3Driver.php b/Classes/Driver/AmazonS3Driver.php index 90a95948..0c43ba2b 100644 --- a/Classes/Driver/AmazonS3Driver.php +++ b/Classes/Driver/AmazonS3Driver.php @@ -1191,7 +1191,7 @@ protected function initializeSettings() $this->initializeBaseUrl(); $this->initializeBaseFolder(); - if ($this->compatibilityService->isFrontend() && (!isset(self::$settings['dnsPrefetch']) || self::$settings['dnsPrefetch'])) { + if (isset($GLOBALS['TSFE']) && $this->compatibilityService->isFrontend() && (!isset(self::$settings['dnsPrefetch']) || self::$settings['dnsPrefetch'])) { $GLOBALS['TSFE']->additionalHeaderData['ausDriverAmazonS3_dnsPrefetch'] = ''; } return $this;