Skip to content
Snippets Groups Projects
Commit a11d7957 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[BUGFIX] Pagination throws 404 if no data is available, because of wrong type check

parent ce023de8
No related branches found
No related tags found
No related merge requests found
......@@ -210,7 +210,7 @@ class JoblistController extends ActionController {
// get all jobs for the current page
$allJobs = $this->jobRepository->findJobsByFilter($filters)->toArray();
$numberOfPages = ($jobLimit <= 0 ? 0 : \ceil(\count($allJobs) / $jobLimit));
$numberOfPages = (int) ($jobLimit <= 0 ? 0 : \ceil(\count($allJobs) / $jobLimit));
if ($numberOfPages !== 0 && $currentPageBrowserPage >= $numberOfPages) {
/** @var ErrorController $errorController */
$errorController = GeneralUtility::makeInstance(ErrorController::class);
......
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