summaryrefslogtreecommitdiff
path: root/program/steps/addressbook/import.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-11-10 07:57:56 +0000
committeralecpl <alec@alec.pl>2011-11-10 07:57:56 +0000
commitf21a04c024e57d2396c6a8ab78b055de098217ee (patch)
tree142979e9d62db88f361587bb2617eb31e1e7207a /program/steps/addressbook/import.inc
parent81f5dd7774119e6f35f4594a68b25e53a22e65f2 (diff)
- Add option to define matching method for addressbook search (#1486564, #1487907)
Diffstat (limited to 'program/steps/addressbook/import.inc')
-rw-r--r--program/steps/addressbook/import.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/addressbook/import.inc b/program/steps/addressbook/import.inc
index 1b9aea18a..63a6dae30 100644
--- a/program/steps/addressbook/import.inc
+++ b/program/steps/addressbook/import.inc
@@ -174,9 +174,9 @@ if ($_FILES['_file']['tmp_name'] && is_uploaded_file($_FILES['_file']['tmp_name'
if (!$replace && $email) {
// compare e-mail address
- $existing = $CONTACTS->search('email', $email, false, false);
+ $existing = $CONTACTS->search('email', $email, 1, false);
if (!$existing->count && $vcard->displayname) { // compare display name
- $existing = $CONTACTS->search('name', $vcard->displayname, false, false);
+ $existing = $CONTACTS->search('name', $vcard->displayname, 1, false);
}
if ($existing->count) {
$IMPORT_STATS->skipped++;