Import/Core_geoip.php
authorEdward <edward@roojs.com>
Tue, 13 May 2014 09:56:01 +0000 (17:56 +0800)
committerEdward <edward@roojs.com>
Tue, 13 May 2014 09:56:01 +0000 (17:56 +0800)
Import/Core_geoip.php

index 109fd97..103b802 100644 (file)
@@ -104,6 +104,9 @@ class Pman_Core_Import_Core_geoip extends Pman_Roo
         
         $city = $this->processCity($row['CITY_NAME'], $row['METRO_CODE'], $row['TIME_ZONE'], $country, $division);
         
+        if(!empty($city) && !empty($city->id)){
+            $this->id_mapping[$row['GEONAME_ID']] = $city->id;
+        }
     }
     
     function processContinent($code, $name)