summaryrefslogtreecommitdiffstats
path: root/lib/public/contacts.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/contacts.php')
-rw-r--r--lib/public/contacts.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/contacts.php b/lib/public/contacts.php
index 0d12e91c67f..fb88c13bd1b 100644
--- a/lib/public/contacts.php
+++ b/lib/public/contacts.php
@@ -116,7 +116,7 @@ namespace OCP {
*/
public static function createOrUpdate($properties, $address_book_key) {
$cm = \OC::$server->getContactsManager();
- return $cm->search($properties, $address_book_key);
+ return $cm->createOrUpdate($properties, $address_book_key);
}
/**