minor plugintools fix

Former-commit-id: d7d43777b952b483a733c7ac92776f12b5c17e62
This commit is contained in:
fbsanchez 2019-02-04 19:32:54 +01:00
parent 7247fbf6ef
commit 8d17c9e0d0
1 changed files with 2 additions and 0 deletions

View File

@ -163,6 +163,8 @@ sub csv_to_obj {
@hr_headers = map { $_ =~ s/\"//g; trim($_); } @hr_headers;
foreach my $line (@lines) {
next if empty($line);
my $i = 0;
my %hr = map { $_ =~ s/\"//g; $hr_headers[$i++] => trim($_) } split /,/, $line;