Skip to content
Snippets Groups Projects
Commit 5fea714d authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Christian Kuhn
Browse files

[BUGFIX] FlexFormNoTabsContainer: Fix usage of array_pop()

PHP’s `array_pop()` requires its argument being passed as reference,
but the result of `array_keys()` is directly used.
The result of `array_keys()` is now stored into a variable which gets
passed to `array_pop()`.

Resolves: #79686
Releases: master, 7.6
Change-Id: Icda3040abefbffad64e93acf0d7ae632ccee00bf
Reviewed-on: https://review.typo3.org/51590


Reviewed-by: default avatarArmin Vieweg <armin@v.ieweg.de>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarMona Muzaffar <mona.muzaffar@gmx.de>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 6bac0d8a
Branches
Tags
No related merge requests found
......@@ -41,7 +41,8 @@ class FlexFormNoTabsContainer extends AbstractContainer
$resultArray = $this->initializeResultArray();
// Determine this single sheet name, most often it ends up with sDEF, except if only one sheet was defined
$sheetName = array_pop(array_keys($flexFormDataStructureArray['sheets']));
$flexFormSheetNames = array_keys($flexFormDataStructureArray['sheets']);
$sheetName = array_pop($flexFormSheetNames);
$flexFormRowDataSubPart = $flexFormRowData['data'][$sheetName]['lDEF'] ?: [];
// That was taken from GeneralUtility::resolveSheetDefInDS - no idea if it is important
......
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