]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fix: Bugs on geoip city and regions
authoreldy <>
Mon, 23 Aug 2010 21:55:34 +0000 (21:55 +0000)
committereldy <>
Mon, 23 Aug 2010 21:55:34 +0000 (21:55 +0000)
wwwroot/cgi-bin/plugins/geoip_city_maxmind.pm
wwwroot/cgi-bin/plugins/geoip_org_maxmind.pm
wwwroot/cgi-bin/plugins/geoip_region_maxmind.pm

index 20d99ece20e4298e9883ee6347f803b6187fa7a4..2402bb4f0d55e9c76b273a68f809c7447bff7d59 100755 (executable)
@@ -4920,7 +4920,8 @@ sub TmpLookup_geoip_city_maxmind(){
 #      }
 #    else {@val = @{$TmpDomainLookup{$param};}}
 #    return @val;
-    return @{$TmpDomainLookup{$param};}||'';
+    if ($TmpDomainLookup{$param}) { return @{$TmpDomainLookup{$param};} }  
+    else { return; }
 }
 
 
index a3b93112c6ed3f2d6131bd9a228222b81deb2e11..3ee00943d3c09712f70472be552d1903c564138e 100644 (file)
@@ -500,7 +500,7 @@ sub TmpLookup_geoip_org_maxmind(){
        #}
     #else {$val = $TmpDomainLookup{$param};}
     #return $val || '';
-    return $TmpDomainLookup{$param};
+    return $TmpDomainLookup{$param}||'';
 }
 
 1;     # Do not remove this line
index 214af5f2ed26e980ff84b871dd15594486206796..4328df55cef26830ec885212046e3c80836c3e50 100755 (executable)
@@ -656,7 +656,8 @@ sub TmpLookup_geoip_region_maxmind(){
        #}
     #else {@val = @{$TmpDomainLookup{$param};}}
     #return @val;
-    return @{$TmpDomainLookup{$param};}||'';
+    if ($TmpDomainLookup{$param}) { return @{$TmpDomainLookup{$param};} }  
+    else { return; }
 }
 
 1;     # Do not remove this line