summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-06-22 22:07:06 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-06-22 22:07:06 +0000
commit5f171b416e64a06098f4f872eda1b5c5c4c340a3 (patch)
tree28c6284588d76ff14d0b4132ff06a885f6cbead7
parentef98159d624beb6550708d940ae8b3faa857fc0b (diff)
Skip empty e-mail addresses in autocompletion
git-svn-id: https://svn.roundcube.net/trunk@4874 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/steps/mail/autocomplete.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/mail/autocomplete.inc b/roundcubemail/program/steps/mail/autocomplete.inc
index 145fb18a5..fbb61a442 100644
--- a/roundcubemail/program/steps/mail/autocomplete.inc
+++ b/roundcubemail/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) {