diff --git a/Classes/Module/StatisticsController.php b/Classes/Module/StatisticsController.php index f1f6da2f7..e38d9d9c4 100644 --- a/Classes/Module/StatisticsController.php +++ b/Classes/Module/StatisticsController.php @@ -171,9 +171,9 @@ public function indexAction(ModuleTemplate $view): ResponseInterface $itemsPerPage = 100; //@TODO $paginator = GeneralUtility::makeInstance( - ArrayPaginator::class, - $data['dataPageInfo'] ?? [], - $this->currentPageNumber, + ArrayPaginator::class, + $data['dataPageInfo'] ?? [], + $this->currentPageNumber, $itemsPerPage ); @@ -1574,7 +1574,7 @@ public function getUrlStr(array $urlParts): string $urlstr .= ($urlParts['fragment'] ?? '') ? '#' . $urlParts['fragment'] : ''; } } else { - $urlstr = ((isset($urlParts['host']) && $urlParts['host']) ? $urlParts['scheme'] . '://' . $urlParts['host'] : $baseUrl) . $urlParts['path']; + $urlstr = ((isset($urlParts['host']) && $urlParts['host']) ? $urlParts['scheme'] . '://' . $urlParts['host'] : $baseUrl) . ($urlParts['path'] ?? ''); $urlstr .= ($urlParts['query'] ?? '') ? '?' . $urlParts['query'] : ''; $urlstr .= ($urlParts['fragment'] ?? '') ? '#' . $urlParts['fragment'] : ''; }