Henry Lyne ([info]henrylyne) wrote in [info]changelog,
@ 2008-11-20 19:41:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
[livejournal] r14548: Remove error showing up in logs.
Committer: henrylyne
Remove error showing up in logs.

U   trunk/cgi-bin/LJ/Location.pm
Modified: trunk/cgi-bin/LJ/Location.pm
===================================================================
--- trunk/cgi-bin/LJ/Location.pm	2008-11-20 19:37:28 UTC (rev 14547)
+++ trunk/cgi-bin/LJ/Location.pm	2008-11-20 19:41:37 UTC (rev 14548)
@@ -60,12 +60,13 @@
 sub as_html_current {
     my $self = shift;
     my $e_text = LJ::ehtml($self->{location} || $self->as_posneg_comma);
-    
+
     my $e_mapquery;
     ## example url from http://maps.google.com/support/bin/answer.py?answer=18539&topic=10780: 
     ## http://maps.google.com/maps?q=37.771008,+-122.41175+(You+can+insert+your+text+here)
     if ($self->as_posneg_comma) {
-        $e_mapquery = LJ::eurl($self->as_posneg_comma . ' (' . $self->{location} . ')');
+        $e_mapquery = LJ::eurl($self->as_posneg_comma);
+        $e_mapquery .= LJ::eurl(' (' . $self->{location} . ')') if $self->{location};
     } else {
         $e_mapquery = LJ::eurl($self->{location});
     }



Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…