]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix double where() usage in resource manager 36268/head
authorJoas Schilling <coding@schilljs.com>
Fri, 20 Jan 2023 09:52:14 +0000 (10:52 +0100)
committerJoas Schilling <coding@schilljs.com>
Mon, 23 Jan 2023 07:48:01 +0000 (08:48 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Collaboration/Resources/Manager.php

index 8fc3d0dd5eae506700078875f98da8ae5335c4aa..fc8804e69b4dc9876c0ddbc65a933dc944d333ef 100644 (file)
@@ -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();