From 865230e4209f7b5c8ed96f526eb6507b384d2068 Mon Sep 17 00:00:00 2001 From: Bostjan Skufca Date: Thu, 14 Apr 2016 02:13:00 +0200 Subject: [PATCH] Autocomplete: fix undefined variable notice if no addressbook is configured for autocomplete --- program/steps/mail/autocomplete.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/steps/mail/autocomplete.inc b/program/steps/mail/autocomplete.inc index 3023ecfb7..cfa579532 100644 --- a/program/steps/mail/autocomplete.inc +++ b/program/steps/mail/autocomplete.inc @@ -58,8 +58,8 @@ else { $book_types = (array) $RCMAIL->config->get('autocomplete_addressbooks', 'sql'); } +$contacts = array(); if (!empty($book_types) && strlen($search)) { - $contacts = array(); $sort_keys = array(); $books_num = count($book_types); $search_lc = mb_strtolower($search);