From 0662d8c57b23762e9d102376aeb0099bd6edb0f7 Mon Sep 17 00:00:00 2001 From: Christophe Croullebois Date: Tue, 31 Jul 2012 16:18:08 +0200 Subject: [PATCH] Bug 8537 : In moremember.pl the call of 'output_pref' is without check the argument passed to "output_pref", could be undefined, in this case koha is not happy. I just put a condition, the same logic than for the line below. Signed-off-by: Chris Cormack --- members/moremember.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/moremember.pl b/members/moremember.pl index 25ae7e9..851c08c 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -454,7 +454,7 @@ sub build_issue_data { $issuedate = $issue->{issuedate}->clone(); } - $issue->{date_due} = output_pref( $issue->{date_due} ); + $issue->{date_due} = output_pref( $issue->{date_due} ) if defined $issue->{date_due}; $issue->{issuedate} = output_pref( $issue->{issuedate} ) if defined $issue->{issuedate}; my $biblionumber = $issue->{biblionumber}; my %row = %{$issue}; -- 1.7.10.4