summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2023-02-06 21:14:31 +0100
committerGitHub <noreply@github.com>2023-02-06 21:14:31 +0100
commitfa1d50ccce6a220631b625aeda54eaf5555ebc66 (patch)
treeafa10cf1cc71a897c61712de92d9ce14dd098aff /apps
parenteca7ab3221a8fd953226da6a1d0244f6b3024773 (diff)
parentf717219490b5224857137e114cf30cb3fe839fe6 (diff)
downloadnextcloud-server-fa1d50ccce6a220631b625aeda54eaf5555ebc66.tar.gz
nextcloud-server-fa1d50ccce6a220631b625aeda54eaf5555ebc66.zip
Merge pull request #36267 from nextcloud/bugfix/noid/dont-reuse-query-builder
Don't reuse query builder object with populated parameters in FederatedShareProvider
Diffstat (limited to 'apps')
-rw-r--r--apps/federatedfilesharing/lib/FederatedShareProvider.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/federatedfilesharing/lib/FederatedShareProvider.php b/apps/federatedfilesharing/lib/FederatedShareProvider.php
index 75bc6261756..b4fedecfd42 100644
--- a/apps/federatedfilesharing/lib/FederatedShareProvider.php
+++ b/apps/federatedfilesharing/lib/FederatedShareProvider.php
@@ -618,6 +618,7 @@ class FederatedShareProvider implements IShareProvider {
->andWhere($qb->expr()->neq('share_type', $qb->createNamedParameter(IShare::TYPE_CIRCLE)));
$qb->execute();
+ $qb = $this->dbConnection->getQueryBuilder();
$qb->delete('federated_reshares')
->where($qb->expr()->eq('share_id', $qb->createNamedParameter($shareId)));
$qb->execute();