From a3342227e5f64a2ef4d45ccd5c6101b325549f01 Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 9 Dec 2008 01:49:55 +0000 Subject: [PATCH] oops --- FS/FS/Record.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 80ab564f1..1f0b140e2 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -1339,8 +1339,8 @@ sub process_batch_import { warn "can't parse file type from filename $file; defaulting to CSV"; $type = 'csv'; } - $type = 'csv' unless $type eq 'xls'; - $opt->{'default_csv'} && $type ne 'xls'; + $type = 'csv' + if $opt->{'default_csv'} && $type ne 'xls'; my $error = FS::Record::batch_import( { -- 2.11.0