From: ivan Date: Fri, 2 Feb 2007 06:29:34 +0000 (+0000) Subject: quiet a harmless but loud warning X-Git-Tag: freeside_1_7_2~1^2~53 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=a27541f2d74d8f2678aad31eee2eaa0bef52c4af;p=freeside.git quiet a harmless but loud warning --- diff --git a/FS/FS/part_pkg/flat.pm b/FS/FS/part_pkg/flat.pm index a58430190..94b7d9947 100644 --- a/FS/FS/part_pkg/flat.pm +++ b/FS/FS/part_pkg/flat.pm @@ -62,7 +62,8 @@ use FS::part_pkg; sub calc_setup { my($self, $cust_pkg, $sdate, $details ) = @_; - my ( $i, $count ) = ( 0, $self->option( 'additional_count' ) ); + my $i = 0; + my $count = $self->option( 'additional_count', 'quiet' ) || 0; while ($i < $count) { push @$details, $self->option( 'additional_info' . $i++ ); }