Matt (mhwest) wrote in changelog,
Matt
mhwest
changelog

[ljcom] r7188: Removed Warning at line 117, by adding &...

Committer: mwest
Removed Warning at line 117, by adding &&
U   branches/r48.1/cgi-bin/LJ/GeoLocation.pm
Modified: branches/r48.1/cgi-bin/LJ/GeoLocation.pm
===================================================================
--- branches/r48.1/cgi-bin/LJ/GeoLocation.pm	2009-04-08 15:19:13 UTC (rev 7187)
+++ branches/r48.1/cgi-bin/LJ/GeoLocation.pm	2009-04-08 15:48:31 UTC (rev 7188)
@@ -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