Skip to content

Commit

Permalink
Merge pull request #26 from Patta/bugfix/issue-25
Browse files Browse the repository at this point in the history
[BUGFIX] Avoid undefined array key warning in XlsimportController
  • Loading branch information
calien666 authored Jun 23, 2023
2 parents 368facc + 72c3473 commit d1f8585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Controller/XlsimportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit d1f8585

Please sign in to comment.