Commit 29fb5f52 authored by Devid Messner's avatar Devid Messner Committed by Georg Ringer
Browse files

[BUGFIX] Undefined array key with PHP8 in old services API

Fix a PHP Warning on custom auth services that have
no service subtype "processLoginDataBE".

Resolves: #94599
Releases: master
Change-Id: I5046236b659674cebc761861ccf668c9bb226dc5
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70012

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
parent 637fb942
......@@ -1074,7 +1074,10 @@ class ExtensionManagementUtility
$serviceSubType = key($info['serviceSubTypes']);
}
// This matches empty subtype too
if ($info['available'] && ($info['subtype'] == $serviceSubType || $info['serviceSubTypes'][$serviceSubType]) && $info['priority'] >= $priority) {
if (($info['available'] ?? false)
&& (($info['subtype'] ?? null) == $serviceSubType || ($info['serviceSubTypes'][$serviceSubType] ?? false))
&& ($info['priority'] ?? 0) >= $priority
) {
// Has a lower quality than the already found, therefore we skip this service
if ($info['priority'] == $priority && $info['quality'] < $quality) {
continue;
......
Markdown is supported
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