diff options
author | ivan <ivan> | 2008-11-20 12:52:32 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-11-20 12:52:32 +0000 |
commit | 0be57b238caeda424741a03589b7d9cb085867e5 (patch) | |
tree | 54e185a1c8a21aa33d79161b4700f1d96d4f8e35 /FS | |
parent | 770f5f713b9b56a104fe8cf3985887bb9d3121c8 (diff) |
better end-of-spreadsheet detection for excel import, hopefully. should fix "Error: Can't use an undefined value as an ARRAY reference" error on import. RT#4297
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/cust_main/Import.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/cust_main/Import.pm b/FS/FS/cust_main/Import.pm index 5c00c6642..a955d2433 100644 --- a/FS/FS/cust_main/Import.pm +++ b/FS/FS/cust_main/Import.pm @@ -232,7 +232,8 @@ sub batch_import { } elsif ( $type eq 'xls' ) { - last if $row > ($parser->{MaxRow} || $parser->{MinRow}); + last if $row > ($parser->{MaxRow} || $parser->{MinRow}) + || ! $parser->{Cells}[$row]; my @row = @{ $parser->{Cells}[$row] }; @columns = map $_->{Val}, @row; |