Bug 14534: Stop overdue_notices.pl from issuing the warning: Use of uninitialized value $borrowernumber

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

To test:

1/ Run the overdue_notices.pl script (don't do this on production
obviously :))
2/ Notice the warns
3/ Apply patch
4/ Run again
5/ Notice no warns, but notices are still generated ok

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
This commit is contained in:
Ulrich Kleiber 2015-07-15 08:35:13 +02:00 committed by Tomas Cohen Arazi
parent fb17640c03
commit d873ed3b5d

View file

@ -556,7 +556,7 @@ END_SQL
next;
}
}
if ($borrowernumber eq $data->{'borrowernumber'}){
if (defined $borrowernumber && $borrowernumber eq $data->{'borrowernumber'}){
# we have already dealt with this borrower
$verbose and warn "already dealt with this borrower $borrowernumber";
next;