Skip to content

Commit e120eb1

Browse files
committed
fix(caldav): avoid selecting every custom properties from table if we have no calendars to filter
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
1 parent b12b38b commit e120eb1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/dav/lib/Db/PropertyMapper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ 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)) return [];
4849
$selectQb = $this->db->getQueryBuilder();
4950
$selectQb->select('*')
5051
->from(self::TABLE_NAME);

0 commit comments

Comments
 (0)