summaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-01-20 10:52:14 +0100
committerJoas Schilling <coding@schilljs.com>2023-01-23 08:48:01 +0100
commitf565cacaf37706bd1b66e288093f20caeb587973 (patch)
tree83a2fef9e41881cb64d17e9f27905069022e2878 /lib/private/Collaboration
parent20190534ee70cba9644552fb2fb5833e17d16832 (diff)
downloadnextcloud-server-f565cacaf37706bd1b66e288093f20caeb587973.tar.gz
nextcloud-server-f565cacaf37706bd1b66e288093f20caeb587973.zip
Fix double where() usage in resource manager
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Collaboration')
-rw-r--r--lib/private/Collaboration/Resources/Manager.php2
1 files changed, 1 insertions, 1 deletions
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();