From 137e2c3cd4c56463faa833424d4645431dec7e25 Mon Sep 17 00:00:00 2001 From: Adrian von Arx <a.vonarx@frappant.ch> Date: Sun, 22 Nov 2015 11:48:19 +0100 Subject: [PATCH] [TASK] Remove unneeded max value check Use PHP min instead of forceIntegerInRange since no max value is needed Resolves: #71696 Releases: master Change-Id: I1f6ae8045909fd87ea2f18a18b8f440982eabf3e Reviewed-on: https://review.typo3.org/44893 Reviewed-by: Markus Klein <markus.klein@typo3.org> Tested-by: Markus Klein <markus.klein@typo3.org> Reviewed-by: Sebastian Fischer <typo3@evoweb.de> Tested-by: Sebastian Fischer <typo3@evoweb.de> Reviewed-by: Georg Ringer <georg.ringer@gmail.com> Tested-by: Georg Ringer <georg.ringer@gmail.com> --- typo3/sysext/recordlist/Classes/RecordList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/recordlist/Classes/RecordList.php b/typo3/sysext/recordlist/Classes/RecordList.php index f026fc26fbb3..7b6679e9600c 100644 --- a/typo3/sysext/recordlist/Classes/RecordList.php +++ b/typo3/sysext/recordlist/Classes/RecordList.php @@ -403,7 +403,7 @@ class RecordList extends AbstractModule } } // Initialize the listing object, dblist, for rendering the list: - $this->pointer = MathUtility::forceIntegerInRange($this->pointer, 0, 100000); + $this->pointer = max(0, (int)$this->pointer); $dblist->start($this->id, $this->table, $this->pointer, $this->search_field, $this->search_levels, $this->showLimit); $dblist->setDispFields(); // Render versioning selector: -- GitLab