diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2024-11-23 16:41:59 +0100 |
---|---|---|
committer | Richard Steinmetz <richard@steinmetz.cloud> | 2024-11-23 16:44:20 +0100 |
commit | 23802949c2c8e8cbc7f3731390f3b830731b8af6 (patch) | |
tree | f743ce43cae875c63523148cde29cfe5bb0b1293 /apps/dav | |
parent | 2a8b7400ed2ddc6cf914ff19628121b4e4479813 (diff) | |
download | nextcloud-server-23802949c2c8e8cbc7f3731390f3b830731b8af6.tar.gz nextcloud-server-23802949c2c8e8cbc7f3731390f3b830731b8af6.zip |
fix: invalid usage of IQueryBuilder::createNamedParameter()
And fix a typo: chunck -> chunk
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/CalDAV/CalDavBackend.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php index 6251c522f6c..cdcdd53701d 100644 --- a/apps/dav/lib/CalDAV/CalDavBackend.php +++ b/apps/dav/lib/CalDAV/CalDavBackend.php @@ -3569,9 +3569,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(); } } |