summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FS/FS/Record.pm4
1 files 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( {