summaryrefslogtreecommitdiff
path: root/program/steps/addressbook/import.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-02-27 13:30:34 +0000
committerthomascube <thomas@roundcube.net>2011-02-27 13:30:34 +0000
commit0fbadebe13b13d6da470731df1f055df595c6a89 (patch)
tree203572c30219b15ca41679cf1087fe161b032cfb /program/steps/addressbook/import.inc
parentec6c39776959f2ed6c8f21cd7539e3f4a5f84d93 (diff)
Improve vcard import: map more fields, support photo urls, better UTF-16 charset detection
Diffstat (limited to 'program/steps/addressbook/import.inc')
-rw-r--r--program/steps/addressbook/import.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/addressbook/import.inc b/program/steps/addressbook/import.inc
index af6f67dd8..7300e3370 100644
--- a/program/steps/addressbook/import.inc
+++ b/program/steps/addressbook/import.inc
@@ -138,7 +138,7 @@ if ($_FILES['_file']['tmp_name'] && is_uploaded_file($_FILES['_file']['tmp_name'
// We're using UTF8 internally
$email = rcube_idn_to_utf8($email);
- if (!$replace) {
+ if (!$replace && $email) {
// compare e-mail address
$existing = $CONTACTS->search('email', $email, false, false);
if (!$existing->count) { // compare display name