summaryrefslogtreecommitdiff
path: root/program/steps/addressbook/save.inc
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-09-17 12:23:34 +0200
committerAleksander Machniak <alec@alec.pl>2012-09-17 12:23:34 +0200
commit32ba62889c1def94f555c3e683fc8087ee16c9b3 (patch)
treea58b9d64a5f04f85e2ee4a6a7cdefc07401669ac /program/steps/addressbook/save.inc
parentfa4bf4388b00b6093df6c770b3db865cc1fa4f40 (diff)
Don't directly require email address on contact import, allowing import
of contacts being validated by addressbook validation code. The same as for create/edit contact actions.
Diffstat (limited to 'program/steps/addressbook/save.inc')
-rw-r--r--program/steps/addressbook/save.inc1
1 files changed, 0 insertions, 1 deletions
diff --git a/program/steps/addressbook/save.inc b/program/steps/addressbook/save.inc
index 3bfce3b4d..887e49827 100644
--- a/program/steps/addressbook/save.inc
+++ b/program/steps/addressbook/save.inc
@@ -161,7 +161,6 @@ else {
$source = $orig_source;
// show notice if existing contacts with same e-mail are found
- $existing = false;
foreach ($CONTACTS->get_col_values('email', $a_record, true) as $email) {
if ($email && ($res = $CONTACTS->search('email', $email, 1, false, true)) && $res->count) {
$OUTPUT->show_message('contactexists', 'notice', null, false);