[freeside-commits] freeside/FS/FS cust_bill.pm,1.369,1.370

Ivan,,, ivan at wavetail.420.am
Sat Feb 11 18:40:29 PST 2012


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv24544

Modified Files:
	cust_bill.pm 
Log Message:
fix harmless but noisy "Use of uninitialized value $date_style in string eq" warning

Index: cust_bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill.pm,v
retrieving revision 1.369
retrieving revision 1.370
diff -u -w -d -r1.369 -r1.370
--- cust_bill.pm	15 Jan 2012 02:17:59 -0000	1.369
+++ cust_bill.pm	12 Feb 2012 02:40:26 -0000	1.370
@@ -4993,7 +4993,7 @@
           ) {
             my $time_period;
             my $date_style = $conf->config('cust_bill-line_item-date_style');
-            if ( $date_style eq 'month_of' ) {
+            if ( defined($date_style) && $date_style eq 'month_of' ) {
               $time_period = time2str('The month of %B', $cust_bill_pkg->sdate);
             } else {
               $time_period =      time2str($date_format, $cust_bill_pkg->sdate).



More information about the freeside-commits mailing list