From 715c7961ba8ff72fe40720bb4feaa7865e57e8b9 Mon Sep 17 00:00:00 2001 From: thomascube Date: Tue, 1 Mar 2011 21:22:52 +0000 Subject: [PATCH] Don't do exact matches when searching for existing email records --- program/include/rcube_contacts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/include/rcube_contacts.php b/program/include/rcube_contacts.php index 8c9810fa9..705551b03 100644 --- a/program/include/rcube_contacts.php +++ b/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; } }