Commit 8d5e2c4a authored by Francesc Guasch's avatar Francesc Guasch
Browse files

wip: return empty if no XML passed

parent 4e420707
......@@ -3,7 +3,7 @@ package Ravada;
use warnings;
use strict;
our $VERSION = '1.4.0';
our $VERSION = '1.5.0';
use Carp qw(carp croak cluck);
use Data::Dumper;
......
......@@ -174,7 +174,7 @@ sub _sort_xml_list($list, $field) {
}
sub _xml_elements($xml, $item) {
confess if !defined $xml;
return {} if !defined $xml;
my $text = $xml->textContent;
$item->{_text} = $text if $text && $text !~ /\n/m;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment