summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-01-20 10:52:14 +0100
committerblizzz (Rebase PR Action) <blizzz@users.noreply.github.com>2023-02-07 17:59:46 +0000
commitfc711c953942e93dd219b9b6ad56072c5c546fc4 (patch)
treee48816647f0bd345a2895229a53ece199afe6540
parentdc737047ce1229a076b2e3e9ef7d1f96f74d06e6 (diff)
downloadnextcloud-server-fc711c953942e93dd219b9b6ad56072c5c546fc4.tar.gz
nextcloud-server-fc711c953942e93dd219b9b6ad56072c5c546fc4.zip
Fix double where() usage in resource manager
Signed-off-by: Joas Schilling <coding@schilljs.com>
-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();