Skip to content
Snippets Groups Projects
Commit 75041196 authored by Rudy Gnodde's avatar Rudy Gnodde Committed by Oliver Bartsch
Browse files

[BUGFIX] Prevent undefined array key warning when fetching session data

Resolves: #97686
Releases: master, 11.5
Change-Id: I0228126e4b7dd091b6eddc70bbbd8aade6142dcc
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74753


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
parent fa8187d5
No related merge requests found
......@@ -460,7 +460,7 @@ class FrontendUserAuthentication extends AbstractUserAuthentication
$value = null;
switch ($type) {
case 'user':
$value = $this->uc[$key];
$value = $this->uc[$key] ?? null;
break;
case 'ses':
$value = $this->getSessionData($key);
......
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