Commit 089fd4c5 authored by Benni Mack's avatar Benni Mack Committed by Andreas Fernandez
Browse files

[BUGFIX] Fix PHP 8 warning in AbstractPlugin

Resolves: #98630
Releases: main, 11.5
Change-Id: Iae48bf68a9f18a33e86d79cf7826617e2b3d48c6
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77570


Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent 7ddd89e6
......@@ -4277,7 +4277,7 @@ parameters:
-
message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
count: 2
count: 1
path: ../../typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php
-
......
......@@ -1391,7 +1391,7 @@ class AbstractPlugin
*/
public function pi_getFFvalue($T3FlexForm_array, $fieldName, $sheet = 'sDEF', $lang = 'lDEF', $value = 'vDEF')
{
$sheetArray = is_array($T3FlexForm_array) ? $T3FlexForm_array['data'][$sheet][$lang] : '';
$sheetArray = $T3FlexForm_array['data'][$sheet][$lang] ?? '';
if (is_array($sheetArray)) {
return $this->pi_getFFvalueFromSheetArray($sheetArray, explode('/', $fieldName), $value);
}
......
Supports Markdown
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