]> git.donarmstrong.com Git - roundcube.git/blobdiff - program/steps/mail/addcontact.inc
Imported Upstream version 0.1~rc2
[roundcube.git] / program / steps / mail / addcontact.inc
index e59dcbe2abf7ec31bba368ee79afa9d68d662c34..775a36b2b74fcdc4411ce5531dfa5c3c25edec40 100644 (file)
@@ -15,7 +15,7 @@
  | Author: Thomas Bruederli <roundcube@gmail.com>                        |
  +-----------------------------------------------------------------------+
 
- $Id: addcontact.inc 543 2007-04-28 18:07:12Z thomasb $
+ $Id: addcontact.inc 638 2007-07-03 17:25:05Z thomasb $
 
 */
 
@@ -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))