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

[livejournal] r18223: LJSUP-7879. Incorrect error when you rec...

Committer: gprochaev
LJSUP-7879. Incorrect error when you receive an invitation in commutiny

U   trunk/cgi-bin/communitylib.pl
Modified: trunk/cgi-bin/communitylib.pl
===================================================================
--- trunk/cgi-bin/communitylib.pl	2011-02-07 07:12:15 UTC (rev 18222)
+++ trunk/cgi-bin/communitylib.pl	2011-02-07 08:33:18 UTC (rev 18223)
@@ -177,7 +177,7 @@
     }
     my $flag_set_owner_error = 0;
     foreach (keys %edgelist) {
-        if ($poll && $is_super && !$poll->is_closed && $_ eq 'admin') {
+        if ($poll && $is_super && !$poll->is_closed && $_ eq 'admin' && $args->{$_}) {
             $flag_set_owner_error = 1;
         } else {
             LJ::set_rel($cu->{userid}, $u->{userid}, $edgelist{$_}) if $args->{$_};

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