https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28700

--- Comment #21 from Andrew Nugged <[email protected]> ---
(In reply to Jonathan Druart from comment #17)
> Created attachment 126082 [details] [review]

This is beside main discussion (I still not yet formed up my opinion on this),
but to fix last patch bug:

      if ref($infos) !~ /HASH|ARRAY/ && $infos->isa('Koha::Object');

should be:

      if ref($infos) !~ /HASH|ARRAY|^$/ && $infos->isa('Koha::Object');

or (whatever is more elegant):

      if ref($infos) && ref($infos) !~ /HASH|ARRAY/ &&
$infos->isa('Koha::Object');

this is to prevent to walk to $infos->isa when there is ref "", i.e. scalar in
$infos.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://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/

Reply via email to