Skip to content

Commit

Permalink
[BUGFIX] Fix displaying document count in statistics in 5.x (#1400)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
  • Loading branch information
beatrycze-volk and sebastian-meyer committed Dec 18, 2024
1 parent eb78cac commit 99a7b4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Domain/Repository/DocumentRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public function getStatisticsForSelectedCollection($settings)
->fetchFirstColumn();
}

return ['titles' => $countTitles, 'volumes' => $countVolumes];
return ['titles' => $countTitles[0] ?? 0, 'volumes' => $countVolumes[0] ?? 0];
}

/**
Expand Down

0 comments on commit 99a7b4a

Please sign in to comment.