aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-01-20 10:47:36 +0100
committerJoas Schilling <coding@schilljs.com>2023-01-23 07:04:57 +0100
commitf717219490b5224857137e114cf30cb3fe839fe6 (patch)
tree3ab7476e4afd8e60af60dcd475a9b688452f2ee0
parentcfc93d8b0a9a8091fcc59cc308fb8ab8a2648b6c (diff)
downloadnextcloud-server-f717219490b5224857137e114cf30cb3fe839fe6.tar.gz
nextcloud-server-f717219490b5224857137e114cf30cb3fe839fe6.zip
Don't reuse query builder object with populated parameters
Signed-off-by: Joas Schilling <coding@schilljs.com>
-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();