diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-11-10 07:57:56 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-11-10 07:57:56 +0000 |
| commit | 51b47415144677d3ccda4d1a28e2e40a5776fc27 (patch) | |
| tree | 48e7ee35fbab3df9188a8ed519d3163eb7b1ee76 /roundcubemail/program/steps/addressbook/save.inc | |
| parent | 77aa861396f15e02c2dee4d23991bba1547e3664 (diff) | |
- Add option to define matching method for addressbook search (#1486564, #1487907)
git-svn-id: https://svn.roundcube.net/trunk@5406 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/addressbook/save.inc')
| -rw-r--r-- | roundcubemail/program/steps/addressbook/save.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/addressbook/save.inc b/roundcubemail/program/steps/addressbook/save.inc index ddbd630ef..0a2d6dbff 100644 --- a/roundcubemail/program/steps/addressbook/save.inc +++ b/roundcubemail/program/steps/addressbook/save.inc @@ -162,7 +162,7 @@ else { // 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, false, false, true)) && $res->count) { + if ($email && ($res = $CONTACTS->search('email', $email, 1, false, true)) && $res->count) { $OUTPUT->show_message('contactexists', 'notice', null, false); break; } |
