瀏覽代碼

Minor - add validation

Julio 6 年之前
父節點
當前提交
ef53860f5a
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      tests/scripts/update_geolocation_coordinates.php

+ 5 - 0
tests/scripts/update_geolocation_coordinates.php

@@ -80,6 +80,11 @@ function getCoordinates($address)
         return false;
     }
 
+    // ignore one letter fields
+    if (strlen($address) == 1) {
+        return false;
+    }
+
     if (isset($list[$address])) {
         return $list[$address];
     }