From 53578fb6673e8ed52c934fd3cc4b3b28f52b4461 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Mon, 18 Jul 2011 23:52:09 +0200 Subject: Bug 672173: Calling collectstats.pl with arguments passes the first argument to some SQL statements r=gerv a=LpSolit --- collectstats.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'collectstats.pl') 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 # 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. -- cgit v1.2.3-24-g4f1b