mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-19 08:52:22 +01:00
Used wrong index. Refs #269
This commit is contained in:
parent
5f7d7a9ddb
commit
fe368e69a7
@ -67,7 +67,7 @@ class Addressbook implements \OCP\Share_Backend_Collection {
|
||||
foreach($backend->getAddressBooksForUser() as $userAddressBook) {
|
||||
$userAddressBooks[] = $userAddressBook['displayname'];
|
||||
}
|
||||
$name = $addressBook['displayname'] . '(' . $addressBook['userid'] . ')';
|
||||
$name = $addressBook['displayname'] . '(' . $addressBook['owner'] . ')';
|
||||
$suffix = '';
|
||||
while (in_array($name.$suffix, $userAddressBooks)) {
|
||||
$suffix++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user