Skip to content

Commit ce839c7

Browse files
committed
[BUGFIX] Fix undefined array key access
1 parent aa7efbf commit ce839c7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: Classes/Controller/AbstractController.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -442,11 +442,11 @@ public function initializeAction(): void
442442
$this->config = $this->config[BackendUtility::getPluginOrModuleString() . '.']['tx_femanager.']['settings.'] ?? [];
443443

444444
if (ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isBackend()) {
445-
$config = BackendUtility::loadTS($this->allConfig['settings']['configPID'] ?? null);
446-
if (is_array($config['plugin.']['tx_femanager.']['settings.'] ?? null)) {
447-
$this->config = $config['plugin.']['tx_femanager.']['settings.'];
448-
$this->settings = $this->config;
449-
}
445+
$pid = $this->allConfig['persistence']['storagePid'] ?? 0;
446+
$config = BackendUtility::loadTS((int)$pid);
447+
$this->config = $config['plugin.']['tx_femanager.']['settings.'] ?? [];
448+
$this->settings = $this->config;
449+
450450

451451
$this->moduleConfig = $config['module.']['tx_femanager.'] ?? [];
452452

0 commit comments

Comments
 (0)