[Koha-bugs] [Bug 9823] Code optimization: Change prototype of GetReservesFromBiblionumber
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jan 23 14:15:18 CET 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9823
Jonathan Druart <jonathan.druart at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #22706|0 |1
is obsolete| |
--- Comment #13 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 24653
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=24653&action=edit
Bug 9823: Refactor return from GetReservesFromBiblionumber
The return from GetReservesFromBiblionumber contains an unnecessary
extra variable. In scalar context an array returns its element count.
Maintaing a separate count can lead to unforeseen bugs
and imposes ugly constructions on the subroutine's users.
Remove the useless count variable from the return
This patch also changes the parameters: now the routine takes a hashref.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list