summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-07-03 17:25:05 +0000
committerthomascube <thomas@roundcube.net>2007-07-03 17:25:05 +0000
commit3fc00e67bbfa5bad7b0d29d268545036f6dc684d (patch)
treeca892af590f512760116b31d2f23c5fa23ba7c35 /program/steps
parentb716bd92d833e2d2546b3f2de6f2c6d001dc166a (diff)
Fix address adding bug reported by David Koblas
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/addressbook/save.inc2
-rw-r--r--program/steps/mail/addcontact.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/addressbook/save.inc b/program/steps/addressbook/save.inc
index 72e54b173..c16d4729f 100644
--- a/program/steps/addressbook/save.inc
+++ b/program/steps/addressbook/save.inc
@@ -83,7 +83,7 @@ if (!empty($cid))
else
{
// check for existing contacts
- $existing = $CONTACTS->search('email', $a_record['email'], false);
+ $existing = $CONTACTS->search('email', $a_record['email'], true, false);
// show warning message
if ($existing->count)
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))