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:
parent
fb17640c03
commit
d873ed3b5d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue