From 7b457f9160cc76ab8ea95d3fe681ce60ff31833a Mon Sep 17 00:00:00 2001 From: "J. Peter M. Schuler" <j.peter.m.schuler@uni-due.de> Date: Wed, 16 Nov 2022 11:06:26 +0100 Subject: [PATCH] [BUGFIX] Avoid undefined array key in AbstractPlugin pi_isOnlyFields Resolves: #99107 Releases: main, 11.5 Change-Id: If5e9d1acf81bf2913405e18cc38f2a7ad5ee62cc Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76643 Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de> Tested-by: core-ci <typo3@b13.com> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Benni Mack <benni@typo3.org> Reviewed-by: Benni Mack <benni@typo3.org> --- typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php b/typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php index d92a63785af8..742db17dc778 100644 --- a/typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php +++ b/typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php @@ -1233,7 +1233,7 @@ class AbstractPlugin $fList = GeneralUtility::trimExplode(',', $fList, true); $tempPiVars = $this->piVars; foreach ($fList as $k) { - if (!MathUtility::canBeInterpretedAsInteger($tempPiVars[$k]) || $tempPiVars[$k] < $lowerThan) { + if (isset($tempPiVars[$k]) && (!MathUtility::canBeInterpretedAsInteger($tempPiVars[$k]) || $tempPiVars[$k] < $lowerThan)) { unset($tempPiVars[$k]); } } -- GitLab