From be3c58047f579f8d329c6cf29eb52256d74f22bf Mon Sep 17 00:00:00 2001 From: Patrick Lenk Date: Fri, 19 Jul 2024 12:53:49 +0200 Subject: [PATCH] [BUGFIX] Prevent TypeError in ModuleController resolves #1084 --- Classes/Controller/ModuleController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);