Aleksander Machniak
2013-06-11 acb4b71ce55f3d98f7053b7bb8fdcf3c7858fbfc
program/steps/mail/show.inc
@@ -255,9 +255,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;