Skip to content

Commit a4fe5ee

Browse files
committed
fix: close cursor after reading the invitation
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
1 parent 9a7e2b1 commit a4fe5ee

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/dav/lib/Controller/InvitationResponseController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ private function getTokenInformation(string $token) {
169169
$query->select('*')
170170
->from('calendar_invitations')
171171
->where($query->expr()->eq('token', $query->createNamedParameter($token)));
172-
$stmt = $query->execute();
172+
$stmt = $query->executeQuery();
173173
$row = $stmt->fetch(\PDO::FETCH_ASSOC);
174+
$stmt->closeCursor();
174175

175176
if (!$row) {
176177
return null;

0 commit comments

Comments
 (0)