From 87fd9434ee95e7b9618e2e0b8779c8b7caf6bcf5 Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Sat, 23 Nov 2024 16:41:59 +0100 Subject: fix: invalid usage of IQueryBuilder::createNamedParameter() And fix a typo: chunck -> chunk Signed-off-by: Richard Steinmetz --- apps/dav/lib/CalDAV/CalDavBackend.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps') diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php index 165c62b5035..01ea38ae474 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(); } } -- cgit v1.2.3