summaryrefslogtreecommitdiffstats
path: root/collectstats.pl
diff options
context:
space:
mode:
Diffstat (limited to 'collectstats.pl')
-rwxr-xr-xcollectstats.pl6
1 files changed, 2 insertions, 4 deletions
diff --git a/collectstats.pl b/collectstats.pl
index a12c85586..e087c28d0 100755
--- a/collectstats.pl
+++ b/collectstats.pl
@@ -458,10 +458,8 @@ sub CollectSeriesData {
# We save a copy of the main $dbh and then switch to the shadow and get
# that one too. Remember, these may be the same.
- Bugzilla->switch_to_main_db();
- my $dbh = Bugzilla->dbh;
- Bugzilla->switch_to_shadow_db();
- my $shadow_dbh = Bugzilla->dbh;
+ my $dbh = Bugzilla->switch_to_main_db();
+ my $shadow_dbh = Bugzilla->switch_to_shadow_db();
my $serieses = $dbh->selectall_hashref("SELECT series_id, query, creator " .
"FROM series " .