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;