View | Details | Raw Unified | Return to bug 16848
Collapse All | Expand All

(-)a/Koha/DateUtils.pm (-3 / +4 lines)
Lines 213-220 sub output_pref { Link Here
213
        and return
213
        and return
214
            if $dt and $str;
214
            if $dt and $str;
215
215
216
    $dt = eval { dt_from_string( $str ) } if $str;
216
    if ( $str ) {
217
    carp "Invalid date '$str' passed to output_pref\n" if $@;
217
        $dt = eval { dt_from_string( $str ) };
218
        carp "Invalid date '$str' passed to output_pref\n" if $@;
219
    }
218
220
219
    return unless defined $dt;
221
    return unless defined $dt;
220
222
221
- 

Return to bug 16848