1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-30 19:52:17 +01:00

Used non-existing variable.

This commit is contained in:
Thomas Tanghus 2012-08-23 14:45:19 +02:00
parent bd365e0910
commit 674a4572c5

View File

@ -41,7 +41,7 @@ class OC_Share_Backend_Addressbook implements OCP\Share_Backend_Collection {
public function generateTarget($itemSource, $shareWith, $exclude = null) { public function generateTarget($itemSource, $shareWith, $exclude = null) {
$addressbook = OC_Contacts_Addressbook::find( $itemSource ); $addressbook = OC_Contacts_Addressbook::find( $itemSource );
$user_addressbooks = array(); $user_addressbooks = array();
foreach(OC_Contacts_Addressbook::all($uid) as $user_addressbook) { foreach(OC_Contacts_Addressbook::all($shareWith) as $user_addressbook) {
$user_addressbooks[] = $user_addressbook['displayname']; $user_addressbooks[] = $user_addressbook['displayname'];
} }
$name = $addressbook['userid']."'s ".$addressbook['displayname']; $name = $addressbook['userid']."'s ".$addressbook['displayname'];