aboutsummaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 50873387e..fdab9eb83 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -678,7 +678,7 @@ while (my @row = FetchSQLData()) {
# Switch back from the shadow database to the regular database so PutFooter()
# can determine the current user even if the "logincookies" table is corrupted
# in the shadow database.
-SendSQL("USE $::db_name");
+ReconnectToMainDatabase();
# Check for bug privacy and set $bug->{isingroups} = 1 if private
# to 1 or more groups