Actions
Bug #62532
closedIndexedSearch pagination wrong because of strict comparison
Start date:
2014-10-29
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:
Description
The pagination of indexed_search is broken because the strict comparison compares a float with an integer and that will never be true.
Code looks like
$pointer = (int)$this->piVars['pointer']; $minPage = $pointer - floor($maxPages / 2); for ($a = $minPage; $a <= $maxPage; $a++) { if ($a === $pointer) { // Never true } }
Actions