]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 145702 - query.cgi doesn't always ConnectToDatabase() early enough
authorbbaetz%student.usyd.edu.au <>
Mon, 3 Jun 2002 08:42:15 +0000 (08:42 +0000)
committerbbaetz%student.usyd.edu.au <>
Mon, 3 Jun 2002 08:42:15 +0000 (08:42 +0000)
r=justdave, preed

query.cgi

index 75dce2706105c88912c2064b075a91de37b3577a..c75834c33976a33dad1abb6f057b28f17c2ef7e6 100755 (executable)
--- a/query.cgi
+++ b/query.cgi
@@ -50,6 +50,8 @@ use vars qw(
     $vars
 );
 
+ConnectToDatabase();
+
 if (defined $::FORM{"GoAheadAndLogIn"}) {
     # We got here from a login page, probably from relogin.cgi.  We better
     # make sure the password is legit.
@@ -301,7 +303,6 @@ $vars->{'userid'} = $::userid;
 # Boolean charts
 my @fields;
 push(@fields, { name => "noop", description => "---" });
-ConnectToDatabase();
 SendSQL("SELECT name, description FROM fielddefs ORDER BY sortkey");
 while (MoreSQLData()) {
     my ($name, $description) = FetchSQLData();