diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-11 11:33:48 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-11 11:33:48 -0400 |
commit | e896c0a9e3cdf34112ce722583d574f36dbbaf2a (patch) | |
tree | 0a19c64d6a50ea71439c8aab0993b3d9fa3b83eb /apps/contacts/lib | |
parent | b1482562335c30c4df4cbd3c74a3c18739a53aa9 (diff) | |
download | nextcloud-server-e896c0a9e3cdf34112ce722583d574f36dbbaf2a.tar.gz nextcloud-server-e896c0a9e3cdf34112ce722583d574f36dbbaf2a.zip |
Fix addressbook sharing, formatItems() changed in past commits
Diffstat (limited to 'apps/contacts/lib')
-rw-r--r-- | apps/contacts/lib/share.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/contacts/lib/share.php b/apps/contacts/lib/share.php index 44b7e8c0640..7aec5339577 100644 --- a/apps/contacts/lib/share.php +++ b/apps/contacts/lib/share.php @@ -65,13 +65,11 @@ class OC_Contacts_Share extends OCP\Share_Backend { * This function allows the backend to control the output of shared items with custom formats. * It is only called through calls to the public getItem(s)Shared(With) functions. */ - public function formatItems($items, $format) { + public function formatItems($items, $format, $parameters = null) { $addressbooks = array(); - foreach ($items as $source => $shares) { - $addressbook = OC_Contacts_Addressbook::find( $source ); - foreach ($shares as $info) { - $addressbook['displayname'] = $info['item_target']; - } + foreach ($items as $item) { + $addressbook = OC_Contacts_Addressbook::find($item['item_source']); + $addressbook['displayname'] = $item['item_target']; $addressbooks[] = $addressbook; } return $addressbooks; |