From 21c3169795e2bfce4aa51c0620342c6ceb8fa942 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Tue, 10 Nov 2009 21:53:27 +0100 Subject: [PATCH] removing warnings --- serials/subscription-detail.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serials/subscription-detail.pl b/serials/subscription-detail.pl index 4522677d86..c425296693 100755 --- a/serials/subscription-detail.pl +++ b/serials/subscription-detail.pl @@ -82,7 +82,7 @@ my ($user, $sessionID, $flags); # COMMENT hdl : IMHO, we should think about passing more and more data hash to template->param rather than duplicating code a new coding Guideline ? for my $date qw(startdate enddate firstacquidate histstartdate histenddate){ - $$subs{$_} = format_date($$subs{$_}); + $$subs{$_} = format_date($$subs{$_}) if $_ && $$subs{$_}; } $subs->{abouttoexpire} = abouttoexpire($subs->{subscriptionid}); -- 2.39.5