Skip to content
Snippets Groups Projects
Commit cc995f7a authored by Francois Suter's avatar Francois Suter Committed by Nikita Hovratov
Browse files

[BUGFIX] Avoid undefined array key access

The LogManager tries to access $GLOBALS['TYPO3_CONF_VARS']['LOG']
without considering that it could be undefined

Releases: main, 11.5
Resolves: #97888
Change-Id: I7ac2435e548e2d241fe223686595a42927ae1a60
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75068


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarNikita Hovratov <nikita.h@live.de>
Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
parent 1a60a200
Branches
Tags
No related merge requests found
......@@ -196,7 +196,7 @@ class LogManager implements SingletonInterface, LogManagerInterface
// Search in the $TYPO3_CONF_VARS['LOG'] array
// for these keys, for example "writerConfiguration"
$configurationKey = $configurationType . 'Configuration';
$configuration = $GLOBALS['TYPO3_CONF_VARS']['LOG'];
$configuration = $GLOBALS['TYPO3_CONF_VARS']['LOG'] ?? [];
$result = $configuration[$configurationKey] ?? [];
// Walk from general to special (t3lib, t3lib.db, t3lib.db.foo)
// and search for the most specific configuration
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment