diff options
author | bbaetz%student.usyd.edu.au <> | 2002-06-03 10:41:43 +0200 |
---|---|---|
committer | bbaetz%student.usyd.edu.au <> | 2002-06-03 10:41:43 +0200 |
commit | a71cb94dc0065812d5cab57a90b2fcaac744dcec (patch) | |
tree | 9d4038eb7b6f431c7d138686a5a8f1fc40bcc1eb /query.cgi | |
parent | 6a4c8ef4d4dcd284207ed3904adee6b49abc9d6d (diff) | |
download | bugzilla-a71cb94dc0065812d5cab57a90b2fcaac744dcec.tar.gz bugzilla-a71cb94dc0065812d5cab57a90b2fcaac744dcec.tar.xz |
Bug 145702 - query.cgi doesn't always ConnectToDatabase() early enough
r=justdave, preed
Diffstat (limited to 'query.cgi')
-rwxr-xr-x | query.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(); |