summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_bill.cgi
diff options
context:
space:
mode:
authorivan <ivan>2005-11-21 12:41:43 +0000
committerivan <ivan>2005-11-21 12:41:43 +0000
commitbbf01f2a628d15c0ca557cf68235f25d6d233ee7 (patch)
tree8a8afb2f473757fba84647a8d26b401bbbd6212e /httemplate/view/cust_bill.cgi
parent345fc9ac916b38c809b24e3fa71d0860f9e58ed9 (diff)
ignore blank lines in payby config
Diffstat (limited to 'httemplate/view/cust_bill.cgi')
-rwxr-xr-xhttemplate/view/cust_bill.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi
index 572441494..56c0c1736 100755
--- a/httemplate/view/cust_bill.cgi
+++ b/httemplate/view/cust_bill.cgi
@@ -8,10 +8,10 @@ my $invnum = $3;
my $conf = new FS::Conf;
-my @payby = $conf->config('payby');
+my @payby = grep /\w/, $conf->config('payby');
#@payby = (qw( CARD DCRD CHEK DCHK LECB BILL CASH WEST COMP ))
@payby = (qw( CARD DCRD CHEK DCHK LECB BILL CASH COMP ))
- unless grep /\w/, @payby;
+ unless @payby;
my %payby = map { $_=>1 } @payby;
my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum});