From f717219490b5224857137e114cf30cb3fe839fe6 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 20 Jan 2023 10:47:36 +0100 Subject: Don't reuse query builder object with populated parameters Signed-off-by: Joas Schilling --- apps/federatedfilesharing/lib/FederatedShareProvider.php | 1 + 1 file changed, 1 insertion(+) (limited to 'apps') 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(); -- cgit v1.2.3