mirror of
https://github.com/nextcloud/server.git
synced 2026-07-15 21:03:00 -04:00
Fix generateTarget() for contacts backend
This commit is contained in:
parent
c073216d8d
commit
47f46890c8
1 changed files with 2 additions and 2 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue