diff options
author | thomascube <thomas@roundcube.net> | 2007-07-03 17:25:05 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2007-07-03 17:25:05 +0000 |
commit | 3fc00e67bbfa5bad7b0d29d268545036f6dc684d (patch) | |
tree | ca892af590f512760116b31d2f23c5fa23ba7c35 /program/steps/mail/addcontact.inc | |
parent | b716bd92d833e2d2546b3f2de6f2c6d001dc166a (diff) |
Fix address adding bug reported by David Koblas
Diffstat (limited to 'program/steps/mail/addcontact.inc')
-rw-r--r-- | program/steps/mail/addcontact.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/addcontact.inc b/program/steps/mail/addcontact.inc index 484b0d4ba..2cf190358 100644 --- a/program/steps/mail/addcontact.inc +++ b/program/steps/mail/addcontact.inc @@ -40,7 +40,7 @@ if (!empty($_POST['_address'])) $contact['name'] = ucfirst(preg_replace('/[\.\-]/', ' ', substr($contact['email'], 0, strpos($contact['email'], '@')))); // check for existing contacts - $existing = $CONTACTS->search('email', $contact['email'], false); + $existing = $CONTACTS->search('email', $contact['email'], true, false); if ($done = $existing->count) $OUTPUT->show_message('contactexists', 'warning'); else if ($done = $CONTACTS->insert($contact)) |