fix use of uninitialized value in lc() error in 5.12
[freeside.git] / FS / FS / cdr.pm
index 0107659..e7b6e6c 100644 (file)
@@ -911,7 +911,7 @@ my %import_options = (
                },
 
                           #drop the || 'csv' to allow auto xls for csv types?
-  'format_types' => { map { $_ => ( lc($cdr_info{$_}->{'type'}) || 'csv' ); }
+  'format_types' => { map { $_ => lc($cdr_info{$_}->{'type'} || 'csv'); }
                           keys %cdr_info
                     },