diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2023-02-06 21:14:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-06 21:14:31 +0100 |
commit | fa1d50ccce6a220631b625aeda54eaf5555ebc66 (patch) | |
tree | afa10cf1cc71a897c61712de92d9ce14dd098aff /apps | |
parent | eca7ab3221a8fd953226da6a1d0244f6b3024773 (diff) | |
parent | f717219490b5224857137e114cf30cb3fe839fe6 (diff) | |
download | nextcloud-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.php | 1 |
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(); |