From 36a70c5f93a2a0c321ffa5beb8e364034ba4c37e Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Sat, 29 Sep 2007 21:45:04 -0500 Subject: [PATCH] fixing sloppy coding in moremember.pl: 500 error when paton missing branchcode Got an error: Can't use an undefined value as a HASH reference at /home/jmf/koha_30_prerelease/koha/production/intranet/cgi-bin/members/moremember.pl line 191. Signed-off-by: Chris Cormack --- members/moremember.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/members/moremember.pl b/members/moremember.pl index 95ac2a070c..484c954cdf 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -187,9 +187,8 @@ if ( C4::Context->preference("IndependantBranches") ) { } $samebranch = 1 if ( $userenv->{flags} == 1 ); } - -$data->{'branchname'} = - ( ( GetBranchDetail( $data->{'branchcode'} ) )->{'branchname'} ); +my $branchdetail = GetBranchDetail( $data->{'branchcode'}); +$data->{'branchname'} = $branchdetail->{branchname}; my ( $total, $accts, $numaccts) = GetMemberAccountRecords( $borrowernumber ); -- 2.39.5