Matt (mhwest) wrote in changelog,
Matt
mhwest
changelog

[ljcom] r7189: Committing GeoLocation Fix back to trunk

Committer: mwest
Committing GeoLocation Fix back to trunk
U   trunk/cgi-bin/LJ/GeoLocation.pm
Modified: trunk/cgi-bin/LJ/GeoLocation.pm
===================================================================
--- trunk/cgi-bin/LJ/GeoLocation.pm	2009-04-08 15:48:31 UTC (rev 7188)
+++ trunk/cgi-bin/LJ/GeoLocation.pm	2009-04-08 16:23:07 UTC (rev 7189)
@@ -113,7 +113,7 @@
         return $cookie;
     }
 
-    if ($LJ::USE_IPMAP) {
+    if ($LJ::USE_IPMAP && $ip) {
         my $country = get_ipmap()->Resolve($ip);
         return unless $country;
         my $ip_class = $ip_class_by_country_code{$country};

Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments