diff options
author | thomascube <thomas@roundcube.net> | 2011-06-22 22:07:06 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-06-22 22:07:06 +0000 |
commit | 930d385d9ec5737d438415a4496045cee37a3754 (patch) | |
tree | f12e2f907c67f5a35a5cd6e2be3df6160b4c67a0 /program/steps/mail | |
parent | 86a025f5042d22e624767e142bfb9e2152fdb41e (diff) |
Skip empty e-mail addresses in autocompletion
Diffstat (limited to 'program/steps/mail')
-rw-r--r-- | program/steps/mail/autocomplete.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/program/steps/mail/autocomplete.inc b/program/steps/mail/autocomplete.inc index 145fb18a5..fbb61a442 100644 --- a/program/steps/mail/autocomplete.inc +++ b/program/steps/mail/autocomplete.inc @@ -51,6 +51,8 @@ else if ($book_types && $search = get_input_value('_search', RCUBE_INPUT_GPC, tr $email_arr = (array)$abook->get_col_values('email', $sql_arr, true); $email_cnt = count($email_arr); foreach ($email_arr as $email) { + if (empty($email)) + continue; $contact = format_email_recipient($email, $sql_arr['name']); // skip entries that don't match if ($email_cnt > 1 && stripos($contact, $search) === false) { |