[freeside-commits] freeside/httemplate/view cust_bill.cgi, 1.33, 1.34

Ivan,,, ivan at wavetail.420.am
Mon Nov 21 04:41:45 PST 2005


Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail:/tmp/cvs-serv3042/view

Modified Files:
	cust_bill.cgi 
Log Message:
ignore blank lines in payby config

Index: cust_bill.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_bill.cgi,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- cust_bill.cgi	21 Nov 2005 10:47:12 -0000	1.33
+++ cust_bill.cgi	21 Nov 2005 12:41:43 -0000	1.34
@@ -8,10 +8,10 @@
 
 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});



More information about the freeside-commits mailing list