http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13934 --- Comment #2 from M. Tompsett <mtompset@hotmail.com> --- 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.