From 11e70bebf45e56b5b4b3855442d4fd96e6ad63cc Mon Sep 17 00:00:00 2001 From: thomasb Date: Tue, 1 Mar 2011 21:22:52 +0000 Subject: Don't do exact matches when searching for existing email records git-svn-id: https://svn.roundcube.net/trunk@4584 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_contacts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roundcubemail/program/include/rcube_contacts.php') diff --git a/roundcubemail/program/include/rcube_contacts.php b/roundcubemail/program/include/rcube_contacts.php index 8c9810fa9..705551b03 100644 --- a/roundcubemail/program/include/rcube_contacts.php +++ b/roundcubemail/program/include/rcube_contacts.php @@ -440,7 +440,7 @@ class rcube_contacts extends rcube_addressbook foreach ($save_data as $col => $values) { if (strpos($col, 'email') === 0) { foreach ((array)$values as $email) { - if ($existing = $this->search('email', $email, true, false)) + if ($existing = $this->search('email', $email, false, false)) break 2; } } -- cgit v1.2.3