diff --git a/Classes/Domain/Repository/PagevisitRepository.php b/Classes/Domain/Repository/PagevisitRepository.php index 96fe3eba..44a8d4f0 100644 --- a/Classes/Domain/Repository/PagevisitRepository.php +++ b/Classes/Domain/Repository/PagevisitRepository.php @@ -114,7 +114,7 @@ public function findLatestPagevisitsWithCompanies(int $limit = 8): QueryResultIn $query = $this->createQuery(); $logicalAnd = [ - $query->in('uid', $identifiers), + $query->in('uid', $identifiers ?: [0]), ]; $query->matching( $query->logicalAnd(...$logicalAnd)