thomascube
2011-08-12 615fb1c06912bd0e13c49575eeb8440028d26117
Only check for existing contacts if an email address is present

1 files modified
2 ■■■ changed files
program/steps/addressbook/save.inc 2 ●●● patch | view | raw | blame | history
program/steps/addressbook/save.inc
@@ -162,7 +162,7 @@
  // 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 (($res = $CONTACTS->search('email', $email, false, false, true)) && $res->count) {
      if ($email && ($res = $CONTACTS->search('email', $email, false, false, true)) && $res->count) {
          $OUTPUT->show_message('contactexists', 'notice', null, false);
          break;
      }