Skip to content

Commit ec7d8b3

Browse files
author
Josh Walker
committed
#284: better check for adding of autocomplete to textfields
1 parent 1eaf867 commit ec7d8b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/fapi.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function kalatheme_textfield($variables) {
104104
$output = '<input' . drupal_attributes($element['#attributes']) . ' />';
105105

106106
$extra = '';
107-
if (isset($element['#autocomplete_path']) && drupal_valid_path($element['#autocomplete_path'])) {
107+
if (!empty($element['#autocomplete_path']) && drupal_valid_path($element['#autocomplete_path'])) {
108108
drupal_add_library('system', 'drupal.autocomplete');
109109
$element ['#attributes']['class'][] = 'form-autocomplete';
110110

0 commit comments

Comments
 (0)