Aleksander Machniak
2013-06-11 ae80b5a309be69a47b438e2dc1e342735b5e22aa
program/steps/mail/show.inc
@@ -275,9 +275,13 @@
  if ($email) {
    // @TODO: search in all address books?
    $CONTACTS = $RCMAIL->get_address_book(-1, true);
    $existing = $CONTACTS->search('email', $email, true, false);
    if ($existing->count)
      return true;
    if (is_object($CONTACTS)) {
      $existing = $CONTACTS->search('email', $email, true, false);
      if ($existing->count) {
        return true;
      }
    }
  }
  return false;