]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
The code was trying to use ConnectToDatabase to connect to the shadow db after quietl...
authordmose%mozilla.org <>
Wed, 25 Oct 2000 09:34:13 +0000 (09:34 +0000)
committerdmose%mozilla.org <>
Wed, 25 Oct 2000 09:34:13 +0000 (09:34 +0000)
reports.cgi

index dd081ad1286d49b7df04d633b2bf545caa9cdbfa..b48ad71336d9f3af19d80db533a09d0b023c42ac 100755 (executable)
@@ -57,6 +57,7 @@ my %reports =
 
 # If we're using bug groups for products, we should apply those restrictions
 # to viewing reports, as well.  Time to check the login in that case.
+ConnectToDatabase(1);
 quietly_check_login();
 
 print "Content-type: text/html\n";
@@ -74,7 +75,6 @@ else
        print("<html><head><title>Bug Reports</title></head><body bgcolor=\"#FFFFFF\">");
         }
 
-ConnectToDatabase(1);
 GetVersionTable();
 
 # If the usebuggroups parameter is set, we don't want to list all products.