Committer: vtroitsky
LJSUP-10857: getrecentcomments: poster_userpic_url fixU 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; }