From 72c3473ededb04c5b67b1fe4033b7023f5537d7f Mon Sep 17 00:00:00 2001 From: Patrick Lenk Date: Tue, 20 Jun 2023 09:47:38 +0200 Subject: [PATCH] [BUGFIX] Avoid undefined array key warning in XlsimportController --- Classes/Controller/XlsimportController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Controller/XlsimportController.php b/Classes/Controller/XlsimportController.php index c64119a..047e4d5 100644 --- a/Classes/Controller/XlsimportController.php +++ b/Classes/Controller/XlsimportController.php @@ -401,7 +401,7 @@ public function importAction( $inserts[$table][$update ? $import['uid'] : uniqid('NEW_', true)] = $insertArray; } - if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][self::class]['Hooks'])) { + if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][self::class]['Hooks'] ?? false)) { foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][self::class]['Hooks'] as $_classRef) { $hookObj = GeneralUtility::makeInstance($_classRef); if (method_exists($hookObj, 'manipulateRelations')) {