mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
minor plugintools fix
Former-commit-id: d7d43777b952b483a733c7ac92776f12b5c17e62
This commit is contained in:
parent
7247fbf6ef
commit
8d17c9e0d0
@ -163,6 +163,8 @@ sub csv_to_obj {
|
|||||||
@hr_headers = map { $_ =~ s/\"//g; trim($_); } @hr_headers;
|
@hr_headers = map { $_ =~ s/\"//g; trim($_); } @hr_headers;
|
||||||
|
|
||||||
foreach my $line (@lines) {
|
foreach my $line (@lines) {
|
||||||
|
next if empty($line);
|
||||||
|
|
||||||
my $i = 0;
|
my $i = 0;
|
||||||
my %hr = map { $_ =~ s/\"//g; $hr_headers[$i++] => trim($_) } split /,/, $line;
|
my %hr = map { $_ =~ s/\"//g; $hr_headers[$i++] => trim($_) } split /,/, $line;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user