]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
fix for "My Votes" floating in space like a disconnected astronaut
authorcyeh%bluemartini.com <>
Sat, 10 Mar 2001 13:52:54 +0000 (13:52 +0000)
committercyeh%bluemartini.com <>
Sat, 10 Mar 2001 13:52:54 +0000 (13:52 +0000)
CGI.pl

diff --git a/CGI.pl b/CGI.pl
index c557473a835545431a079e83066dc28533dbcfea..091055dd73424cf87a0e97f3534dc68000bfeebd 100644 (file)
--- a/CGI.pl
+++ b/CGI.pl
@@ -1073,7 +1073,13 @@ Actions:
     $html .=
         qq{ <BR> <INPUT TYPE=SUBMIT VALUE="Find"> bug \# <INPUT NAME=id SIZE=6>};
 
-    $html .= " | <a href='reports.cgi'>Reports</a></TD>\n";
+    $html .= " | <a href='reports.cgi'>Reports</a>"; 
+    if ($loggedin) {
+        if ($::anyvotesallowed) {
+            $html .= " | <A HREF=\"showvotes.cgi\">My votes</A>";
+        }
+    } 
+    $html .= "</TD>\n";
     if ($loggedin) {
        #a little mandatory SQL, used later on
         SendSQL("SELECT mybugslink, userid, blessgroupset FROM profiles " .
@@ -1108,9 +1114,6 @@ Actions:
         if (!defined $::anyvotesallowed) {
             GetVersionTable();
         }
-        if ($::anyvotesallowed) {
-            $html .= qq{ <BR> <A HREF="showvotes.cgi"><NOBR>My votes</NOBR></A>};
-        }
         $html .= "</TR><TR>";
         $html .= "<TD>Preset Queries: </TD>";
         $html .= "<TD colspan=2>\n";