summaryrefslogtreecommitdiffstats
path: root/apps/contacts
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-08-23 14:45:19 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-08-23 22:03:35 +0200
commita3af9f4773ec498ca9049f8995bdfad912e0d3c8 (patch)
tree838a4e427a9370390e3992992bec95e7de120185 /apps/contacts
parentd5127b14bef08edeeec60da991723dc48b260dbb (diff)
downloadnextcloud-server-a3af9f4773ec498ca9049f8995bdfad912e0d3c8.tar.gz
nextcloud-server-a3af9f4773ec498ca9049f8995bdfad912e0d3c8.zip
Used non-existing variable.
Diffstat (limited to 'apps/contacts')
-rw-r--r--apps/contacts/lib/share/addressbook.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/contacts/lib/share/addressbook.php b/apps/contacts/lib/share/addressbook.php
index 62799696d95..0c90470d377 100644
--- a/apps/contacts/lib/share/addressbook.php
+++ b/apps/contacts/lib/share/addressbook.php
@@ -41,7 +41,7 @@ class OC_Share_Backend_Addressbook implements OCP\Share_Backend_Collection {
public function generateTarget($itemSource, $shareWith, $exclude = null) {
$addressbook = OC_Contacts_Addressbook::find( $itemSource );
$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'];
}
$name = $addressbook['userid']."'s ".$addressbook['displayname'];
@@ -49,7 +49,7 @@ class OC_Share_Backend_Addressbook implements OCP\Share_Backend_Collection {
while (in_array($name.$suffix, $user_addressbooks)) {
$suffix++;
}
-
+
return $name.$suffix;
}