wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r19764: LJSUP-8713

Committer: gprochaev
LJSUP-8713

U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2011-08-18 03:19:39 UTC (rev 19763)
+++ trunk/cgi-bin/LJ/User.pm	2011-08-18 03:20:55 UTC (rev 19764)
@@ -3845,7 +3845,7 @@
     ## For beta-testers only.
     my $comm = LJ::load_user($LJ::LJPHOTO_ALLOW_FROM_COMMUNITY);
     return 1 if $u->can_manage ($comm);
-    return 0 unless $comm->is_friend($u);
+    return 0 unless $comm && $comm->is_friend($u);
 
     return 1;
 }

Tags: livejournal, pm, wisest-owl
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