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 <crc@liblime.com>
This commit is contained in:
parent
7be258131a
commit
36a70c5f93
1 changed files with 2 additions and 3 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue