summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--location.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/location.module b/location.module
index 9684bda..a70e2b4 100644
--- a/location.module
+++ b/location.module
@@ -1282,7 +1282,7 @@ function _location_autocomplete($country, $string = '') {
while (list($code, $name) = each($provinces)) {
if ($counter < 5) {
if (preg_match($string, strtolower($name))) {
- $matches[$code] = $name;
+ $matches[$name] = $name;
++$counter;
}
}