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

[livejournal] r18341: LJSUP-7970. Link to the Owner Election

Committer: gprochaev
LJSUP-7970. Link to the Owner Election

U   trunk/htdocs/community/members.bml
Modified: trunk/htdocs/community/members.bml
===================================================================
--- trunk/htdocs/community/members.bml	2011-02-17 09:09:12 UTC (rev 18340)
+++ trunk/htdocs/community/members.bml	2011-02-17 09:59:10 UTC (rev 18341)
@@ -641,13 +641,13 @@
                 my @q = $poll->questions;
                 my @items = @q ? $q[0]->items : ();
                 foreach my $item (@items) {
-                    $show_owner = 1 if $item->{item} =~ m#<lj user='$remote->{user}'>#;
+                    $show_owner = 1 if $remote && ($item->{item} =~ m#<lj user='$remote->{user}'>#);
                 }
             }
             $ret .= "<br>" . LJ::Lang::ml('community.election.owner.election.link', { 
                                     community   => LJ::ljuser($c), 
                                     href        => "href='$LJ::SITEROOT/community/election.bml?authas=$c->{user}'"
-                            }) . "<br>";
+                            }) . "<br>" if $show_owner;
         }
     }
 

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