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

--- Comment #1 from Blou <[email protected]> ---
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.
_______________________________________________
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