diff --git a/Koha/Object.pm b/Koha/Object.pm index fc30adc2b3..0956cca836 100644 --- a/Koha/Object.pm +++ b/Koha/Object.pm @@ -224,7 +224,7 @@ sub TO_JSON { } elsif ( _datetime_column_type( $columns_info->{$col}->{data_type} ) ) { eval { - return undef unless $unblessed->{$col}; + return unless $unblessed->{$col}; $unblessed->{$col} = output_pref({ dateformat => 'rfc3339', dt => dt_from_string($unblessed->{$col}, 'sql'),