dever %!s(int64=3) %!d(string=hai) anos
pai
achega
934a42e72a
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      app/shop/lib/Info.php

+ 3 - 2
app/shop/lib/Info.php

@@ -55,8 +55,9 @@ class Info
             }
         }
 
-        $data = $this->fetch(false, $city, $lng, $lat, 1, $name, $method);
-
+        if ($city) {
+            $data = $this->fetch(false, $city, $lng, $lat, 1, $name, $method);
+        }
         
         $type = Dever::input('type', 1);
         if (!$data) {