From: ivan Date: Thu, 2 Jun 2011 20:43:15 +0000 (+0000) Subject: fix use of uninitialized value in lc() error in 5.12 X-Git-Tag: freeside_2_3_0~192 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=d632cda4e4c3e77d63ce61aae4096e4c81c29b9d fix use of uninitialized value in lc() error in 5.12 --- diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm index 0107659a8..e7b6e6cd3 100644 --- a/FS/FS/cdr.pm +++ b/FS/FS/cdr.pm @@ -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 },