summaryrefslogtreecommitdiff
path: root/lib/Kolab/CardDAV/ContactsBackend.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-02-06 16:31:42 (GMT)
committerThomas Bruederli <thomas@roundcube.net>2014-02-10 13:17:36 (GMT)
commit4f80d31abe01bb39cf4712d3175a3e22684e14c4 (patch)
treeb975e4f5a01ba589497dd19d0191d229503f07d2 /lib/Kolab/CardDAV/ContactsBackend.php
parent66898a8d6f17dc1b6ef150c552e49a5040144325 (diff)
downloadiRony-4f80d31abe01bb39cf4712d3175a3e22684e14c4.tar.gz
Adapt to kolab_storage_folder optimizations: don't cast resultset into array (#2827)
Diffstat (limited to 'lib/Kolab/CardDAV/ContactsBackend.php')
-rw-r--r--lib/Kolab/CardDAV/ContactsBackend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Kolab/CardDAV/ContactsBackend.php b/lib/Kolab/CardDAV/ContactsBackend.php
index 72850e5..f43edb5 100644
--- a/lib/Kolab/CardDAV/ContactsBackend.php
+++ b/lib/Kolab/CardDAV/ContactsBackend.php
@@ -269,7 +269,7 @@ class ContactsBackend extends CardDAV\Backend\AbstractBackend
$query = array(array('type', '=', $groups_support ? array('contact','distribution-list') : 'contact'));
$cards = array();
if ($storage = $this->get_storage_folder($addressBookId)) {
- foreach ((array)$storage->select($query) as $contact) {
+ foreach ($storage->select($query) as $contact) {
$cards[] = array(
'id' => $contact['uid'],
'uri' => $contact['uid'] . '.vcf',