Committer: gprochaev
LJSUP-10815. Minor fixU trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm =================================================================== --- trunk/cgi-bin/LJ/User.pm 2012-01-20 08:22:55 UTC (rev 20941) +++ trunk/cgi-bin/LJ/User.pm 2012-01-20 11:05:15 UTC (rev 20942) @@ -3828,7 +3828,7 @@ foreach my $comm_name (@LJ::LJPHOTO_ALLOW_FROM_COMMUNITIES) { my $comm = LJ::load_user ($comm_name); - return 0 unless $comm; + next unless $comm; return 1 if $u->can_manage ($comm) or $comm->is_friend($u); } return 1 if $u->prop ('fotki_migration_status');