From 74c39f4347535c22c2cb5367118c84320584e59a Mon Sep 17 00:00:00 2001 From: Ulrich Kleiber Date: Wed, 15 Jul 2015 08:35:13 +0200 Subject: [PATCH] Bug 14534: Stop overdue_notices.pl from issuing the warning: Use of uninitialized value $borrowernumber --- misc/cronjobs/overdue_notices.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl index 6e30fa2..8f292fa 100755 --- a/misc/cronjobs/overdue_notices.pl +++ b/misc/cronjobs/overdue_notices.pl @@ -555,7 +555,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; -- 1.7.2.5