From 930d385d9ec5737d438415a4496045cee37a3754 Mon Sep 17 00:00:00 2001 From: thomascube Date: Wed, 22 Jun 2011 22:07:06 +0000 Subject: Skip empty e-mail addresses in autocompletion --- program/steps/mail/autocomplete.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'program/steps/mail/autocomplete.inc') 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) { -- cgit v1.2.3