Skip to content
Snippets Groups Projects
Commit 2ef7a0fb authored by J. Peter M. Schuler's avatar J. Peter M. Schuler Committed by Stefan Bürk
Browse files

[BUGFIX] Avoid undefined array key "pointer." in AbstractPlugin

Resolves: #99106
Releases: main, 11.5
Change-Id: Iabddf0b2f1c98db6e3e07f26162257f696d6fd9f
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76642


Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
parent 666ecb7e
Branches
Tags
No related merge requests found
......@@ -578,7 +578,7 @@ class AbstractPlugin
'activeLinkWrap' => '<span class="activeLinkWrap">|</span>'
);*/
// Initializing variables:
$pointer = (int)$this->piVars[$pointerName];
$pointer = (int)($this->piVars[$pointerName] ?? 0);
$count = (int)$this->internal['res_count'];
$results_at_a_time = MathUtility::forceIntegerInRange($this->internal['results_at_a_time'], 1, 1000);
$totalPages = (int)ceil($count / $results_at_a_time);
......
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