summaryrefslogtreecommitdiffstats
path: root/collectstats.pl
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-07-18 23:52:09 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2011-07-18 23:52:09 +0200
commit53578fb6673e8ed52c934fd3cc4b3b28f52b4461 (patch)
treea7ee545b98441442f9efd5e34a786343f80d77de /collectstats.pl
parent706d83ffeb980a6444573327312b4056b1e84ac4 (diff)
downloadbugzilla-53578fb6673e8ed52c934fd3cc4b3b28f52b4461.tar.gz
bugzilla-53578fb6673e8ed52c934fd3cc4b3b28f52b4461.tar.xz
Bug 672173: Calling collectstats.pl with arguments passes the first argument to some SQL statements
r=gerv a=LpSolit
Diffstat (limited to 'collectstats.pl')
-rwxr-xr-xcollectstats.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/collectstats.pl b/collectstats.pl
index f8ee89215..b7fc2d8ca 100755
--- a/collectstats.pl
+++ b/collectstats.pl
@@ -476,7 +476,7 @@ sub CollectSeriesData {
# (days_since_epoch + series_id) % frequency = 0. So they'll run every
# <frequency> days, but the start date depends on the series_id.
my $days_since_epoch = int(time() / (60 * 60 * 24));
- my $today = $ARGV[0] || today_dash();
+ my $today = today_dash();
# 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.