1
0
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:
Thomas Tanghus 2013-11-28 14:21:06 +01:00
parent 5f7d7a9ddb
commit fe368e69a7

View File

@ -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++;