From ec7d8b38344d60d5f6dc55db9164b7366e6fc2ea Mon Sep 17 00:00:00 2001 From: Josh Walker Date: Mon, 15 Aug 2016 13:20:36 -0700 Subject: [PATCH] #284: better check for adding of autocomplete to textfields --- includes/fapi.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/fapi.inc b/includes/fapi.inc index 2483a6b..d51d13a 100644 --- a/includes/fapi.inc +++ b/includes/fapi.inc @@ -104,7 +104,7 @@ function kalatheme_textfield($variables) { $output = ''; $extra = ''; - if (isset($element['#autocomplete_path']) && drupal_valid_path($element['#autocomplete_path'])) { + if (!empty($element['#autocomplete_path']) && drupal_valid_path($element['#autocomplete_path'])) { drupal_add_library('system', 'drupal.autocomplete'); $element ['#attributes']['class'][] = 'form-autocomplete';