From e199b82e5e55c4f3a59a5577a661bf296de45766 Mon Sep 17 00:00:00 2001
From: Matthias Adrowski <matthias.adrowski@sgalinski.de>
Date: Mon, 7 Feb 2022 17:54:38 +0100
Subject: [PATCH] [TASK] Fix php8.1 error

---
 ext_localconf.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext_localconf.php b/ext_localconf.php
index 761c30f..12384ac 100644
--- a/ext_localconf.php
+++ b/ext_localconf.php
@@ -101,7 +101,7 @@ call_user_func(
 			['className' => \SGalinski\SgNews\Xclass\PageRenderer::class];
 
 		# Hook to add the "go to News Module Button
-		if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/db_layout.php']['drawHeaderHook'])) {
+		if (!isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/db_layout.php']['drawHeaderHook'])) {
 			$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/db_layout.php']['drawHeaderHook'] = [];
 		}
 		$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/db_layout.php']['drawHeaderHook'][] =
-- 
GitLab