@@ -40,7 +40,7 @@ class Info
if (!$data) {
if ($type == 1) {
$data = $this->fetch(false, $city, $lng, $lat, 10, $name, $method);
- } else {
+ } elseif ($type == 2) {
$data = $this->fetch(false, false, $lng, $lat, 1, $name, $method);
}