rabin пре 3 година
родитељ
комит
5632df3754
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      src/Api.php

+ 3 - 0
src/Api.php

@@ -251,6 +251,9 @@ class Api
 
         if (isset($temp[2]) && $temp[2] && $county) {
             $data = array();
+            if (strstr($temp[2], '000000')) {
+                $temp[2] = str_replace('000000', '', $temp[2]);
+            }
             $data['id'] = $temp[2];
             $data['clear'] = true;
             $county_info = Dever::db('area/county')->one($data);