From 0f094521a97854373deb1b41516b01a18fb30692 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] - Software 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: --- misc/cronjobs/overdue_notices.pl | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl index 04ccf5a..0f263c4 100755 --- a/misc/cronjobs/overdue_notices.pl +++ b/misc/cronjobs/overdue_notices.pl @@ -689,7 +689,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'} ) { -- 1.7.2.5