X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=program%2Fsteps%2Faddressbook%2Fimport.inc;fp=program%2Fsteps%2Faddressbook%2Fimport.inc;h=63a6dae30928f48be02c41c7467af8a19e20953c;hb=76507f7c63a660742e76889ad6e3919f3dde3bb0;hp=1b9aea18a15c2689858500a8223a7af7d8e38200;hpb=a2dd2e41259a5e90016efcd7d083020b95e25527;p=roundcube.git diff --git a/program/steps/addressbook/import.inc b/program/steps/addressbook/import.inc index 1b9aea1..63a6dae 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++;