diff --git a/Classes/Domain/Repository/DocumentRepository.php b/Classes/Domain/Repository/DocumentRepository.php index 7e09a5df7..3c0187759 100644 --- a/Classes/Domain/Repository/DocumentRepository.php +++ b/Classes/Domain/Repository/DocumentRepository.php @@ -364,7 +364,7 @@ public function getStatisticsForSelectedCollection($settings) ->fetchFirstColumn(); } - return ['titles' => $countTitles, 'volumes' => $countVolumes]; + return ['titles' => $countTitles[0] ?? 0, 'volumes' => $countVolumes[0] ?? 0]; } /**