[Koha-bugs] [Bug 9823] Code optimization: Change prototype of GetReservesFromBiblionumber

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 4 14:53:48 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9823

Jonathan Druart <jonathan.druart at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #16256|0                           |1
        is obsolete|                            |

--- Comment #9 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 22706
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=22706&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