1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-02 14:24:10 +01:00

Fix generateTarget() for contacts backend

This commit is contained in:
Michael Gapczynski 2012-06-30 21:03:36 -04:00
parent bd87f17c20
commit b61a303475

View File

@ -41,9 +41,9 @@ class OC_Contacts_Share extends OCP\Share_Backend {
$addressbook = OC_Contacts_Addressbook::find( $item );
$user_addressbooks = array();
foreach(OC_Contacts_Addressbook::all($uid) as $user_addressbook) {
$user_addressbooks[] = $user_addressbooks['displayname'];
$user_addressbooks[] = $user_addressbook['displayname'];
}
$name = $addressbook['uid']."'s ".$addressbook['displayname'];
$name = $addressbook['userid']."'s ".$addressbook['displayname'];
$suffix = '';
while (in_array($name.$suffix, $user_addressbooks)) {
$suffix++;