[freeside-commits] freeside/FS/FS part_pkg.pm,1.98,1.99
Ivan,,,
ivan at wavetail.420.am
Tue Nov 3 17:00:35 PST 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv28905
Modified Files:
part_pkg.pm
Log Message:
silence "use of uninitialized value in split" warning
Index: part_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg.pm,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -d -r1.98 -r1.99
--- part_pkg.pm 22 Oct 2009 12:50:04 -0000 1.98
+++ part_pkg.pm 4 Nov 2009 01:00:33 -0000 1.99
@@ -205,7 +205,11 @@
warn " inserting part_pkg_taxoverride records" if $DEBUG;
my %overrides = %{ $options{'tax_overrides'} || {} };
foreach my $usage_class ( keys %overrides ) {
- my @overrides = (grep "$_", split (',', $overrides{$usage_class}) );
+ my $override =
+ ( exists($overrides{$usage_class}) && defined($overrides{$usage_class}) )
+ ? $overrides{$usage_class}
+ : '';
+ my @overrides = (grep "$_", split(',', $override) );
my $error = $self->process_m2m (
'link_table' => 'part_pkg_taxoverride',
'target_table' => 'tax_class',
More information about the freeside-commits
mailing list