sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[livejournal] r20947: LJSUP-10857: getrecentcomments: poster_u...

Committer: vtroitsky
LJSUP-10857: getrecentcomments: poster_userpic_url fix
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2012-01-20 12:20:36 UTC (rev 20946)
+++ trunk/cgi-bin/ljprotocol.pl	2012-01-20 12:55:39 UTC (rev 20947)
@@ -1109,7 +1109,7 @@
 
         my $comm_obj = LJ::Comment->new($journal, jtalkid => $comment->{jtalkid});
         my $userpic = $comm_obj->userpic;
-        $comment->{poster_userpic_url} = $userpic->url if $userpic;
+        $comment->{poster_userpic_url} = $userpic && $userpic->url;
         
     }
 

Tags: livejournal, pl, sunnyman, vtroitsky
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