Import/Core_geoip.php
authorEdward <edward@roojs.com>
Tue, 13 May 2014 10:51:20 +0000 (18:51 +0800)
committerEdward <edward@roojs.com>
Tue, 13 May 2014 10:51:20 +0000 (18:51 +0800)
Import/Core_geoip.php

index a884e82..70ae33f 100644 (file)
@@ -249,6 +249,10 @@ class Pman_Core_Import_Core_geoip extends Pman_Roo
     
     function processBlock($row)
     {
+        if(empty($this->id_mapping[$row['GEONAME_ID']])){
+            $this->log("Missing mapping for {$row['GEONAME_ID']}");
+        }
+        
         $network_mapping = DB_DataObject::factory('core_geoip_network_mapping');
         
         $start_ip = array_pop(explode(":", $row['NETWORK_START_IP']));