From: Don Armstrong Date: Thu, 10 Sep 2009 15:53:10 +0000 (-0700) Subject: * set the date to zero in cases where the date is empty X-Git-Tag: release/2.6.0~436^2~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c3677f4230980aa2491be2133802c78b4f85d910;p=debbugs.git * set the date to zero in cases where the date is empty --- diff --git a/examples/debian/postpa/22oldbugs b/examples/debian/postpa/22oldbugs index 09428a1f..bff889df 100755 --- a/examples/debian/postpa/22oldbugs +++ b/examples/debian/postpa/22oldbugs @@ -45,7 +45,9 @@ count_bugs(function => sub { return () if @merged and $merged[0] < $d{bug}; # 3600*24*30 (30 days) - my $cmonths = int(($startdate - $status->{date}) / 2592000); + my $cmonths = int(($startdate - + length($status->{date})?$status->{date}:0) / + 2592000); if ($cmonths >= 24 && !length($status->{forwarded}) && !$excludepackage{$d{pkg}}) { $oldpackage{$d{bug}} = $d{pkg};