aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2024-11-23 16:41:59 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-11-25 17:00:14 +0000
commit9a94b6a39bb5e868039c66b7339c2c8072ad3c20 (patch)
tree42b54f076fd376de988d0afd303dc44f0819dd36
parent62fc9909f540b9b1752df9b3aca8df93c5ab71f4 (diff)
downloadnextcloud-server-9a94b6a39bb5e868039c66b7339c2c8072ad3c20.tar.gz
nextcloud-server-9a94b6a39bb5e868039c66b7339c2c8072ad3c20.zip
fix: invalid usage of IQueryBuilder::createNamedParameter()
And fix a typo: chunck -> chunk Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
-rw-r--r--apps/dav/lib/CalDAV/CalDavBackend.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php
index 7bef0becfc4..5f7c4d6fc07 100644
--- a/apps/dav/lib/CalDAV/CalDavBackend.php
+++ b/apps/dav/lib/CalDAV/CalDavBackend.php
@@ -3529,9 +3529,9 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
// delete all links that match object uid's
$cmd = $this->db->getQueryBuilder();
$cmd->delete($this->dbObjectInvitationsTable)
- ->where($cmd->expr()->in('uid', $cmd->createNamedParameter('uids'), IQueryBuilder::PARAM_STR_ARRAY));
- foreach (array_chunk($allIds, 1000) as $chunckIds) {
- $cmd->setParameter('uids', $chunckIds, IQueryBuilder::PARAM_INT_ARRAY);
+ ->where($cmd->expr()->in('uid', $cmd->createParameter('uids'), IQueryBuilder::PARAM_STR_ARRAY));
+ foreach (array_chunk($allIds, 1000) as $chunkIds) {
+ $cmd->setParameter('uids', $chunkIds, IQueryBuilder::PARAM_INT_ARRAY);
$cmd->executeStatement();
}
}