Skip to content
Snippets Groups Projects
Commit dbcb78e9 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Remove wrongly applied substraction from offset

parent 65df175e
No related branches found
No related tags found
No related merge requests found
...@@ -100,7 +100,7 @@ class LatestController extends AbstractController { ...@@ -100,7 +100,7 @@ class LatestController extends AbstractController {
// Redo this function, until $newsMetaData gets the $limit. Needed because of languagevisibility. // Redo this function, until $newsMetaData gets the $limit. Needed because of languagevisibility.
if (count($newsMetaData) < $limit) { if (count($newsMetaData) < $limit) {
$offset += $limit - 1; $offset += $limit;
$maxCount = $this->newsRepository->getCountOfLastUpdatedOrHighlightedNewsByCategories( $maxCount = $this->newsRepository->getCountOfLastUpdatedOrHighlightedNewsByCategories(
FALSE, $categoryUids, TRUE, $this->settings['sortBy'], $tagUids, $startTime, $endTime FALSE, $categoryUids, TRUE, $this->settings['sortBy'], $tagUids, $startTime, $endTime
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment