summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-10-31 11:23:35 +0100
committerJoas Schilling <coding@schilljs.com>2019-11-12 17:37:47 +0100
commit6d9afca14f3b94d6c62307a2b248c7d9c56e9736 (patch)
tree9fb2d8162035f902dd60468d36a0611cb452e4cd /apps
parent0fe4b717dcc5ad50853e0a887bfa60416657988d (diff)
downloadnextcloud-server-6d9afca14f3b94d6c62307a2b248c7d9c56e9736.tar.gz
nextcloud-server-6d9afca14f3b94d6c62307a2b248c7d9c56e9736.zip
Fix "Invalid parameter number: mixed named and positional parameters"
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/Migration/SetAcceptedStatus.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Migration/SetAcceptedStatus.php b/apps/files_sharing/lib/Migration/SetAcceptedStatus.php
index e8701488ef1..935372ca3fe 100644
--- a/apps/files_sharing/lib/Migration/SetAcceptedStatus.php
+++ b/apps/files_sharing/lib/Migration/SetAcceptedStatus.php
@@ -66,7 +66,7 @@ class SetAcceptedStatus implements IRepairStep {
$query = $this->connection->getQueryBuilder();
$query
->update('share')
- ->set('accepted', $query->createParameter(IShare::STATUS_ACCEPTED))
+ ->set('accepted', $query->createNamedParameter(IShare::STATUS_ACCEPTED))
->where($query->expr()->in('share_type', $query->createNamedParameter([IShare::TYPE_USER, IShare::TYPE_GROUP, IShare::TYPE_USERGROUP], IQueryBuilder::PARAM_INT_ARRAY)));
$query->execute();
}