diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl index 828a5ccfe2..93332a6064 100755 --- a/misc/cronjobs/overdue_notices.pl +++ b/misc/cronjobs/overdue_notices.pl @@ -671,7 +671,8 @@ sub parse_letter { $tables{'branches'} = $p; } - my $currency_format = GetCurrency()->{currency}; + my $currencies = GetCurrency(); + my $currency_format = $currencies->{currency} if defined($currencies); my @item_tables; if ( my $i = $params->{'items'} ) {