diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-05-05 10:35:25 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-05-05 10:35:25 +0200 |
commit | 99f2fa73d1c386a6aa9c5464c576ac4a9d086ea4 (patch) | |
tree | 599c0fc8c90251104092a365d0d461b0c0e06a07 /apps/federatedfilesharing | |
parent | 865661ed75a542245abcc6639adee769a13267d0 (diff) | |
download | nextcloud-server-99f2fa73d1c386a6aa9c5464c576ac4a9d086ea4.tar.gz nextcloud-server-99f2fa73d1c386a6aa9c5464c576ac4a9d086ea4.zip |
Fix usage of rename executeUpdate
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r-- | apps/federatedfilesharing/lib/Controller/RequestHandlerController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php b/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php index 424a02d280b..a7beca508a3 100644 --- a/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php +++ b/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php @@ -442,7 +442,7 @@ class RequestHandlerController extends OCSController { ->set('remote_id', $qb->createNamedParameter($newRemoteId)) ->where($qb->expr()->eq('remote_id', $qb->createNamedParameter($id))) ->andWhere($qb->expr()->eq('share_token', $qb->createNamedParameter($token))); - $affected = $query->executeUpdate(); + $affected = $query->executeStatement(); if ($affected > 0) { return new Http\DataResponse(['remote' => $cloudId->getRemote(), 'owner' => $cloudId->getUser()]); |