From abc346728f1bdd702e7f34ae41bfeda9e06c5ab8 Mon Sep 17 00:00:00 2001 From: "bbaetz%student.usyd.edu.au" Date: Mon, 3 Jun 2002 01:42:15 +0000 Subject: [PATCH] Bug 145702 - query.cgi doesn't always ConnectToDatabase() early enough r=justdave, preed git-svn-id: svn://10.0.0.236/branches/BUGZILLA-2_16-BRANCH@122521 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/query.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/query.cgi b/mozilla/webtools/bugzilla/query.cgi index 75dce270610..c75834c3397 100755 --- a/mozilla/webtools/bugzilla/query.cgi +++ b/mozilla/webtools/bugzilla/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();