http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13934
--- Comment #2 from M. Tompsett <[email protected]> --- Comment on attachment 37412 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37412 Bug 13934: C4::ItemType->get should return undef if no parameter given Review of attachment 37412: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=13934&attachment=37412) ----------------------------------------------------------------- ::: C4/ItemType.pm @@ +99,5 @@ > > sub get { > my ($class, $itemtype) = @_; > + > + return unless $itemtype; Hypothetical question: Could not someone do something crazy like have an itemtype code of 0? -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
