Bug 12475

Summary: GetMemberDetails should return undef if borrowernumber doesn't exist
Product: Koha Reporter: David Cook <dcook>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: CLOSED WONTFIX QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: gmcharlt, katrin.fischer, kyle.m.hall
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description David Cook 2014-06-25 01:36:56 UTC
If you pass an invalid borrowernumber (ie a borrowernumber that doesn't exist in the borrowers table) to GetMemberDetails, you get the following information in the hashref it returns:

'authflags' => undef,
'flags' => {},
'amountoutstanding' => '0',
'showname' => undef

It should just return 'undef' so you know that the borrower you're looking for doesn't exist in the database.
Comment 1 Katrin Fischer 2018-05-16 02:02:53 UTC
GetMemberDetails no longer exists in Koha.