28 Feb
2022
28 Feb
'22
6:18 p.m.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30196 --- Comment #1 from Blou <philippe.blouin@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.