diff --git a/Classes/Controller/ModuleController.php b/Classes/Controller/ModuleController.php index 49c32ea34..a3f394566 100644 --- a/Classes/Controller/ModuleController.php +++ b/Classes/Controller/ModuleController.php @@ -101,7 +101,7 @@ public function listAction(): ResponseInterface } } - $itemsPerPage = $this->settings['perPage'] ?? 10; + $itemsPerPage = (int)$this->settings['perPage'] ?? 10; $paginator = GeneralUtility::makeInstance(QueryResultPaginator::class, $mails, $currentPage, $itemsPerPage); $pagination = GeneralUtility::makeInstance(SlidingWindowPagination::class, $paginator, 15);