summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-01-20 10:52:14 +0100
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-01-23 17:53:30 +0000
commit6eed4bd711f5dab877aab9d462c4cf2281bb5386 (patch)
treea6da415b359fe37210a51b0467041a5b05593b79
parent143eaa43c32d37a3a916081c0b18849e69560f95 (diff)
downloadnextcloud-server-6eed4bd711f5dab877aab9d462c4cf2281bb5386.tar.gz
nextcloud-server-6eed4bd711f5dab877aab9d462c4cf2281bb5386.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();