summaryrefslogtreecommitdiff
path: root/program/steps/addressbook/save.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-11-10 07:57:56 +0000
committeralecpl <alec@alec.pl>2011-11-10 07:57:56 +0000
commitf21a04c024e57d2396c6a8ab78b055de098217ee (patch)
tree142979e9d62db88f361587bb2617eb31e1e7207a /program/steps/addressbook/save.inc
parent81f5dd7774119e6f35f4594a68b25e53a22e65f2 (diff)
- Add option to define matching method for addressbook search (#1486564, #1487907)
Diffstat (limited to 'program/steps/addressbook/save.inc')
-rw-r--r--program/steps/addressbook/save.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/addressbook/save.inc b/program/steps/addressbook/save.inc
index ddbd630ef..0a2d6dbff 100644
--- a/program/steps/addressbook/save.inc
+++ b/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;
}