]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use proper andwhere clause 19276/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Mon, 3 Feb 2020 11:17:46 +0000 (12:17 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 3 Feb 2020 11:17:46 +0000 (12:17 +0100)
Fixes #19248

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/federatedfilesharing/lib/FederatedShareProvider.php

index 82f47d61ded41ff5c46bbb1244e5c017e1ee5ad8..cf5ee133ea6292bd0dfd3cc39a56b33b6b64477b 100644 (file)
@@ -600,7 +600,7 @@ class FederatedShareProvider implements IShareProvider {
                $qb = $this->dbConnection->getQueryBuilder();
                $qb->delete('share')
                        ->where($qb->expr()->eq('id', $qb->createNamedParameter($shareId)))
-                       ->where($qb->expr()->neq('share_type', $qb->createNamedParameter(IShare::TYPE_CIRCLE)));
+                       ->andWhere($qb->expr()->neq('share_type', $qb->createNamedParameter(IShare::TYPE_CIRCLE)));
                $qb->execute();
 
                $qb->delete('federated_reshares')