summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-02-03 12:17:46 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-02-03 12:17:46 +0100
commite0715d704e97fa8b318d88a83894d066de380b5d (patch)
tree02efbb89227118f06af3eb48466de2f44ab3a402 /apps/federatedfilesharing/lib
parent411058e47cd42871b2099190ac67f47b9bd17e30 (diff)
downloadnextcloud-server-e0715d704e97fa8b318d88a83894d066de380b5d.tar.gz
nextcloud-server-e0715d704e97fa8b318d88a83894d066de380b5d.zip
Use proper andwhere clause
Fixes #19248 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/federatedfilesharing/lib')
-rw-r--r--apps/federatedfilesharing/lib/FederatedShareProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/lib/FederatedShareProvider.php b/apps/federatedfilesharing/lib/FederatedShareProvider.php
index 82f47d61ded..cf5ee133ea6 100644
--- a/apps/federatedfilesharing/lib/FederatedShareProvider.php
+++ b/apps/federatedfilesharing/lib/FederatedShareProvider.php
@@ -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')