From 35ef2d36845933336b65e32e4fb9e944529339af Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 16 Aug 2013 07:21:10 -0400 Subject: [PATCH] Bug 10664 [QA Followup] - fix error in overdue_notices.pl if there is no active currency Fixes the following koha-qa.pl error: FAIL misc/cronjobs/overdue_notices.pl OK pod OK forbidden patterns OK valid FAIL critic # Variables::ProhibitConditionalDeclarations: Signed-off-by: Galen Charlton (cherry picked from commit e476378323eb8dd31e67e4741d271d88de61b59e) Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 22f96c6ebeb77da5efe7285d1980ce705e22726e) Signed-off-by: Bernardo Gonzalez Kriegel (cherry picked from commit 22f96c6ebeb77da5efe7285d1980ce705e22726e) --- misc/cronjobs/overdue_notices.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl index 93332a6064..1a259607de 100755 --- a/misc/cronjobs/overdue_notices.pl +++ b/misc/cronjobs/overdue_notices.pl @@ -672,7 +672,8 @@ sub parse_letter { } my $currencies = GetCurrency(); - my $currency_format = $currencies->{currency} if defined($currencies); + my $currency_format; + $currency_format = $currencies->{currency} if defined($currencies); my @item_tables; if ( my $i = $params->{'items'} ) { -- 2.39.5