diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-02-03 12:17:46 +0100 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2020-02-03 13:16:49 +0000 |
commit | c680ebbc1591c61d9211a7647495d9cf0784a9a1 (patch) | |
tree | 141c94478a5dfcc863c8de9d2962ce27f4ff0d6c | |
parent | 297debef34d1192548a1fc451c645e71b05e0a81 (diff) | |
download | nextcloud-server-c680ebbc1591c61d9211a7647495d9cf0784a9a1.tar.gz nextcloud-server-c680ebbc1591c61d9211a7647495d9cf0784a9a1.zip |
Use proper andwhere clause
Fixes #19248
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r-- | apps/federatedfilesharing/lib/FederatedShareProvider.php | 2 |
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') |