summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/autocomplete.inc2
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) {