Committer: gprochaev
LJSUP-7775. can't get inviteU trunk/cgi-bin/communitylib.pl
Modified: trunk/cgi-bin/communitylib.pl =================================================================== --- trunk/cgi-bin/communitylib.pl 2011-01-25 07:03:25 UTC (rev 18097) +++ trunk/cgi-bin/communitylib.pl 2011-01-25 07:42:28 UTC (rev 18098) @@ -177,10 +177,10 @@ } my $flag_set_owner_error = 0; foreach (keys %edgelist) { - unless (not ($is_super && $poll && !$poll->is_closed && $args->{$_} eq 'A')) { + if ($poll && $is_super && !$poll->is_closed && $args->{$_} eq 'A') { + $flag_set_owner_error = 1; + } else { LJ::set_rel($cu->{userid}, $u->{userid}, $edgelist{$_}) if $args->{$_}; - } else { - $flag_set_owner_error = 1; } }