fix use of uninitialized value in lc() error in 5.12
authorivan <ivan>
Thu, 2 Jun 2011 20:43:15 +0000 (20:43 +0000)
committerivan <ivan>
Thu, 2 Jun 2011 20:43:15 +0000 (20:43 +0000)
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
                     },