vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[ljcom] r9875: LJSUP-7216: fix "Can't call method..." e...

Committer: vsukhanov
LJSUP-7216: fix "Can't call method..." error.
U   trunk/cgi-bin/LJ/SUP/RPC/Command/comments_tree.pm
Modified: trunk/cgi-bin/LJ/SUP/RPC/Command/comments_tree.pm
===================================================================
--- trunk/cgi-bin/LJ/SUP/RPC/Command/comments_tree.pm	2010-12-21 04:14:39 UTC (rev 9874)
+++ trunk/cgi-bin/LJ/SUP/RPC/Command/comments_tree.pm	2010-12-21 08:56:37 UTC (rev 9875)
@@ -187,7 +187,7 @@
 
         ## Provide identity info
         my %ident_info = ();
-        if (my $ident = $pu->identity){
+        if ($pu and my $ident = $pu->identity){
             $ident_info{typeid}     = $ident->typeid;
             $ident_info{short_code} = $ident->short_code;
             $ident_info{name}       = $ident->display_name($pu);

Tags: ljcom, pm, vadvs
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