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

[livejournal] r18165: LJSUP-6868. Fix error in logic.

Committer: gprochaev
LJSUP-6868. Fix error in logic.

U   trunk/bin/misc/set_comm_supermaintainer.pl
Modified: trunk/bin/misc/set_comm_supermaintainer.pl
===================================================================
--- trunk/bin/misc/set_comm_supermaintainer.pl	2011-02-01 03:41:16 UTC (rev 18164)
+++ trunk/bin/misc/set_comm_supermaintainer.pl	2011-02-01 04:27:50 UTC (rev 18165)
@@ -162,6 +162,9 @@
         my $u_id = $row->{'remoteid'};
         my $u = LJ::load_userid ($u_id);
         return $u if $u && $u->is_visible && $u->can_manage($comm) && $u->check_activity(90);
+    } else {
+        ## No "account_create" record. Start the election.
+        return undef;
     }
 
     $sth->execute($comm->{userid}, 'maintainer_add');

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