From 1a1045844efb05f7d3c62f865e0c7a9642a9a6b1 Mon Sep 17 00:00:00 2001 From: hdl Date: Tue, 29 May 2007 16:54:50 +0000 Subject: [PATCH] Bug Fix : If cannot GetExpirationDate (because frequency is unknown...) Then take todays'date as startdate for the renewal. --- serials/subscription-renew.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serials/subscription-renew.pl b/serials/subscription-renew.pl index 5856c236e8..09576422ba 100755 --- a/serials/subscription-renew.pl +++ b/serials/subscription-renew.pl @@ -79,7 +79,7 @@ if ($op eq "renew") { my $subscription= GetSubscription($subscriptionid); -$template->param(startdate => format_date(GetExpirationDate($subscriptionid)), +$template->param(startdate => format_date(GetExpirationDate($subscriptionid)||POSIX::strftime("%Y-%m-%d",localtime)), numberlength => $subscription->{numberlength}, weeklength => $subscription->{weeklength}, monthlength => $subscription->{monthlength}, -- 2.39.5