diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-12-02 16:21:38 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-12-02 18:34:20 +0300 |
commit | 2de727390564fb21d58c1029e3781a1c2472fecc (patch) | |
tree | ecf805b76801489b969c02d0c6b4092ee0d5342e /apps/dav/lib | |
parent | e3ee81de050a65b1d97cb521f77ef11f00164399 (diff) |
Close open cursor in the caldav back-end
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r-- | apps/dav/lib/CalDAV/CalDavBackend.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php index 7094358a2c6..67d36e351a8 100644 --- a/apps/dav/lib/CalDAV/CalDavBackend.php +++ b/apps/dav/lib/CalDAV/CalDavBackend.php @@ -1901,6 +1901,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription $result = $outerQuery->executeQuery(); $calendarObjects = $result->fetchAll(); + $result->closeCursor(); return array_map(function ($o) { $calendarData = Reader::read($o['calendardata']); @@ -2615,6 +2616,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription 'size' => (int)$row['size'], ]; } + $stmt->closeCursor(); return $result; } @@ -2994,6 +2996,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription ->executeQuery(); $ids = $result->fetchAll(); + $result->closeCursor(); foreach ($ids as $id) { $this->deleteCalendar( $id['id'], |