summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2023-02-09 12:28:29 +0100
committerGitHub <noreply@github.com>2023-02-09 12:28:29 +0100
commite3f67b199161b979b4cbfb6d7a142921cc75d0fe (patch)
tree76a62163efcdc5c12a8829e159a952a11e521ea3
parent2dbf69409b761d02b886dcdb7c9b022643d8039f (diff)
parentfc711c953942e93dd219b9b6ad56072c5c546fc4 (diff)
downloadnextcloud-server-e3f67b199161b979b4cbfb6d7a142921cc75d0fe.tar.gz
nextcloud-server-e3f67b199161b979b4cbfb6d7a142921cc75d0fe.zip
Merge pull request #36318 from nextcloud/backport/36268/stable24
[stable24] Fix double where() usage in resource manager
-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();