dever пре 3 година
родитељ
комит
5a8397a117
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      app/shop/lib/Info.php

+ 4 - 0
app/shop/lib/Info.php

@@ -97,6 +97,10 @@ class Info
 
         $where = 'type = '.$type.' and status = 1 and state = 1';
 
+        $county = Dever::db('area/county')->find($city);
+        if ($county) {
+            $city = $county['id'];
+        }
         if ($type == 1 && $city) {
             $where .= ' and city = ' . $city;
         }