From 6eed4bd711f5dab877aab9d462c4cf2281bb5386 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 20 Jan 2023 10:52:14 +0100 Subject: Fix double where() usage in resource manager Signed-off-by: Joas Schilling --- lib/private/Collaboration/Resources/Manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Collaboration/Resources/Manager.php b/lib/private/Collaboration/Resources/Manager.php index 8fc3d0dd5ea..fc8804e69b4 100644 --- a/lib/private/Collaboration/Resources/Manager.php +++ b/lib/private/Collaboration/Resources/Manager.php @@ -148,7 +148,7 @@ class Manager implements IManager { ->setFirstResult($start); if ($filter !== '') { - $query->where($query->expr()->iLike('c.name', $query->createNamedParameter('%' . $this->connection->escapeLikeParameter($filter) . '%'))); + $query->andWhere($query->expr()->iLike('c.name', $query->createNamedParameter('%' . $this->connection->escapeLikeParameter($filter) . '%'))); } $result = $query->execute(); -- cgit v1.2.3