diff options
author | Joas Schilling <coding@schilljs.com> | 2016-09-15 09:47:39 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-09-15 09:47:39 +0200 |
commit | 44fbf6f7349ed4be30cba0957bb1c308a895d232 (patch) | |
tree | c649bee1bb36299d0b7ce6de2ba73f1164d47e71 /apps/dav/lib/CardDAV | |
parent | 08c6ca5a1a97d358a6aea9ce87ba8c8579be42c2 (diff) | |
download | nextcloud-server-44fbf6f7349ed4be30cba0957bb1c308a895d232.tar.gz nextcloud-server-44fbf6f7349ed4be30cba0957bb1c308a895d232.zip |
Close cursors
Diffstat (limited to 'apps/dav/lib/CardDAV')
-rw-r--r-- | apps/dav/lib/CardDAV/CardDavBackend.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/lib/CardDAV/CardDavBackend.php b/apps/dav/lib/CardDAV/CardDavBackend.php index f7e0a017803..3aab2712125 100644 --- a/apps/dav/lib/CardDAV/CardDavBackend.php +++ b/apps/dav/lib/CardDAV/CardDavBackend.php @@ -499,11 +499,12 @@ class CardDavBackend implements BackendInterface, SyncSupport { $query->setParameter('uri', $uris, IQueryBuilder::PARAM_STR_ARRAY); $result = $query->execute(); - while($row = $result->fetch()) { + while ($row = $result->fetch()) { $row['etag'] = '"' . $row['etag'] . '"'; $row['carddata'] = $this->readBlob($row['carddata']); $cards[] = $row; } + $result->closeCursor(); } return $cards; } |