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');
}
if (!empty($book_types) && strlen($search)) {
$contacts = array();
if (!empty($book_types) && strlen($search)) {
$sort_keys = array();
$books_num = count($book_types);
$search_lc = mb_strtolower($search);

Loading…
Cancel
Save