Skip to content

Commit 2380294

Browse files
committed
fix: invalid usage of IQueryBuilder::createNamedParameter()
And fix a typo: chunck -> chunk Signed-off-by: Richard Steinmetz <[email protected]>
1 parent 2a8b740 commit 2380294

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/dav/lib/CalDAV/CalDavBackend.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3569,9 +3569,9 @@ protected function purgeCalendarInvitations(int $calendarId): void {
35693569
// delete all links that match object uid's
35703570
$cmd = $this->db->getQueryBuilder();
35713571
$cmd->delete($this->dbObjectInvitationsTable)
3572-
->where($cmd->expr()->in('uid', $cmd->createNamedParameter('uids'), IQueryBuilder::PARAM_STR_ARRAY));
3573-
foreach (array_chunk($allIds, 1000) as $chunckIds) {
3574-
$cmd->setParameter('uids', $chunckIds, IQueryBuilder::PARAM_INT_ARRAY);
3572+
->where($cmd->expr()->in('uid', $cmd->createParameter('uids'), IQueryBuilder::PARAM_STR_ARRAY));
3573+
foreach (array_chunk($allIds, 1000) as $chunkIds) {
3574+
$cmd->setParameter('uids', $chunkIds, IQueryBuilder::PARAM_INT_ARRAY);
35753575
$cmd->executeStatement();
35763576
}
35773577
}

0 commit comments

Comments
 (0)