[Koha-bugs] [Bug 30196] Odd number of elements warning caused by dt_from_string
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Feb 28 18:18:10 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30196
--- Comment #1 from Blou <philippe.blouin at inlibro.com> ---
Created attachment 131170
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=131170&action=edit
Bug 30196: Odd number of elements warning caused by dt_from_string
Koha/DateUtils' dt_from_string is a sub expected to return a scalar, but
does not in all case.
In one instance, tt simply return... nothing, which cause one common call
output_pref( { dt => dt_from_string( $serinfo->{$d} ), dateonly => 1 } );
to output a warning.
Simply returning undef instead will solve the issue.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list