Bug 8299 - overdue_notice.pl shows error messages
fixes 2 warnings... Use of uninitialized value in pattern match (m//) at /usr/share/koha/bin/cronjobs/overdue_notices.pl line 659. Use of uninitialized value in pattern match (m//) at /usr/share/koha/bin/cronjobs/overdue_notices.pl line 670. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
This commit is contained in:
parent
aabc512372
commit
c88cbf7695
|
|
@ -669,7 +669,9 @@ sub parse_letter {
|
|||
}
|
||||
|
||||
my $currency_format;
|
||||
if ($params->{'letter'}->{'content'} =~ m/<fine>(.*)<\/fine>/o) { # process any fine tags...
|
||||
if ( defined $params->{'letter'}->{'content'}
|
||||
and $params->{'letter'}->{'content'} =~ m/<fine>(.*)<\/fine>/o )
|
||||
{ # process any fine tags...
|
||||
$currency_format = $1;
|
||||
$params->{'letter'}->{'content'} =~ s/<fine>.*<\/fine>/<<item.fine>>/o;
|
||||
}
|
||||
|
|
@ -679,7 +681,7 @@ sub parse_letter {
|
|||
my $item_format = '';
|
||||
foreach my $item (@$i) {
|
||||
my $fine = GetFine($item->{'itemnumber'}, $params->{'borrowernumber'});
|
||||
if (!$item_format) {
|
||||
if ( !$item_format and defined $params->{'letter'}->{'content'} ) {
|
||||
$params->{'letter'}->{'content'} =~ m/(<item>.*<\/item>)/;
|
||||
$item_format = $1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue