ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[livejournal] r17115: fix precedence mistake

Committer: ssafronova
fix precedence mistake
U   trunk/cgi-bin/LJ/Talk/Author/User.pm
U   trunk/cgi-bin/LJ/Talk.pm
Modified: trunk/cgi-bin/LJ/Talk/Author/User.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk/Author/User.pm	2010-08-12 10:47:13 UTC (rev 17114)
+++ trunk/cgi-bin/LJ/Talk/Author/User.pm	2010-08-12 11:00:22 UTC (rev 17115)
@@ -13,7 +13,7 @@
                                              ditemid => $opts->{ditemid} );
     my $is_friend          = LJ::is_friend( $journalu, $remote );
     my $remote_can_comment = $entry->registered_can_comment
-        or ( $remote and $is_friend );
+        || ( $remote and $is_friend );
 
     my %whocheck;
 

Modified: trunk/cgi-bin/LJ/Talk.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk.pm	2010-08-12 10:47:13 UTC (rev 17114)
+++ trunk/cgi-bin/LJ/Talk.pm	2010-08-12 11:00:22 UTC (rev 17115)
@@ -1417,7 +1417,7 @@
     my $is_person = $remote && $remote->is_person;
     my $is_friend = LJ::is_friend( $journalu, $remote );
     my $remote_can_comment = $entry->registered_can_comment
-        or ( $remote and $is_friend );
+        || ( $remote and $is_friend );
 
     return "You cannot edit this comment."
         if $editid && !$is_person;

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