From 1fb0351979637626a8b2310209edf851689f8342 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 8 Dec 2011 11:10:20 -0500 Subject: [PATCH] Bug 7336 - memberentry.pl generates an error in the log Adding check for the existence of a variable in order to quiet errors in the log. Signed-off-by: Paul Poulain --- members/memberentry.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index d169dbdf6f..c047873938 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -649,7 +649,7 @@ if (C4::Context->preference('uppercasesurnames')) { } $data{debarred} = C4::Overdues::CheckBorrowerDebarred($borrowernumber); -$data{datedebarred} = $data{debarred} if ( $data{debarred} ne "9999-12-31" ); +$data{datedebarred} = $data{debarred} if ( $data{debarred} && $data{debarred} ne "9999-12-31" ); foreach (qw(dateenrolled dateexpiry dateofbirth datedebarred)) { $data{$_} = format_date($data{$_}); # back to syspref for display $template->param( $_ => $data{$_}); -- 2.39.5