Skip to content

Commit b670d80

Browse files
authored
Merge pull request #55678 from nextcloud/backport/55651/stable32
[stable32] fix(caldav): avoid selecting every custom properties from table if we have no calendars to filter
2 parents f514ead + cba2723 commit b670d80

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/dav/lib/Db/PropertyMapper.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ public function findPropertyByPathAndName(string $userId, string $path, string $
4545
* @throws \OCP\DB\Exception
4646
*/
4747
public function findPropertiesByPathsAndUsers(array $calendars): array {
48+
if (empty($calendars)) {
49+
return [];
50+
}
4851
$selectQb = $this->db->getQueryBuilder();
4952
$selectQb->select('*')
5053
->from(self::TABLE_NAME);

0 commit comments

Comments
 (0)