]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 672173: Calling collectstats.pl with arguments passes the first argument to some...
authorFrédéric Buclin <LpSolit@gmail.com>
Mon, 18 Jul 2011 21:52:09 +0000 (23:52 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 18 Jul 2011 21:52:09 +0000 (23:52 +0200)
r=gerv a=LpSolit

collectstats.pl

index f8ee8921542a2ad04dd2b377f442bf7503d5a482..b7fc2d8ca0910c539a73dc9155080c60777d8c2f 100755 (executable)
@@ -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.