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

--- Comment #47 from David Cook <[email protected]> ---
(In reply to Jonathan Druart from comment #46)
> I think the whole block could be:
> 
> $output .= encode("UTF-8", $record->as_usmarc()) // q{};
> 
> From Encode::encode POD:
>   "If the $string is undef, then undef is returned."

Personally, I don't like putting method output directly into another function
call, as it can make exception handling harder. 

But your suggestion does look more elegant and would be less code to maintain. 

I'd be happy with either.

-- 
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