Autocomplete: fix undefined variable notice if no addressbook is configured for autocomplete

pull/5203/head
Bostjan Skufca 9 years ago
parent e2e56261b9
commit 865230e420

@ -58,8 +58,8 @@ else {
$book_types = (array) $RCMAIL->config->get('autocomplete_addressbooks', 'sql'); $book_types = (array) $RCMAIL->config->get('autocomplete_addressbooks', 'sql');
} }
$contacts = array();
if (!empty($book_types) && strlen($search)) { if (!empty($book_types) && strlen($search)) {
$contacts = array();
$sort_keys = array(); $sort_keys = array();
$books_num = count($book_types); $books_num = count($book_types);
$search_lc = mb_strtolower($search); $search_lc = mb_strtolower($search);

Loading…
Cancel
Save