summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--location.module3
1 files changed, 1 insertions, 2 deletions
diff --git a/location.module b/location.module
index 01c6a2c..bd4d7d9 100644
--- a/location.module
+++ b/location.module
@@ -933,8 +933,7 @@ function _location_autocomplete($country, $string = '') {
}
}
}
- echo drupal_to_js($matches);
- return;
+ drupal_json($matches);
}
/**