diff --git a/apps/dav/lib/Db/PropertyMapper.php b/apps/dav/lib/Db/PropertyMapper.php index a3dbdaa7d984b..bf0aa5c2a40ca 100644 --- a/apps/dav/lib/Db/PropertyMapper.php +++ b/apps/dav/lib/Db/PropertyMapper.php @@ -45,6 +45,9 @@ public function findPropertyByPathAndName(string $userId, string $path, string $ * @throws \OCP\DB\Exception */ public function findPropertiesByPathsAndUsers(array $calendars): array { + if (empty($calendars)) { + return []; + } $selectQb = $this->db->getQueryBuilder(); $selectQb->select('*') ->from(self::TABLE_NAME);