[freeside-commits] freeside/FS/FS cust_main.pm,1.332,1.333

Ivan,,, ivan at wavetail.420.am
Sat Feb 2 18:24:05 PST 2008


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv5018

Modified Files:
	cust_main.pm 
Log Message:
should eliminate "Use of uninitialized value in length at /usr/local/share/perl/5.8.8/FS/cust_main.pm line 5194." warnings

Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.332
retrieving revision 1.333
diff -u -d -r1.332 -r1.333
--- cust_main.pm	11 Jan 2008 23:10:47 -0000	1.332
+++ cust_main.pm	3 Feb 2008 02:24:03 -0000	1.333
@@ -5190,8 +5190,8 @@
   my @where = ();
   push @where, "cust_main.custnum = $table.custnum" unless $opt{'total'};
   if ( $table eq 'cust_bill' || $opt{'unapplied_date'} ) {
-    push @where, "$table._date <= $start" if length($start);
-    push @where, "$table._date >  $end"   if length($end);
+    push @where, "$table._date <= $start" if defined($start) && length($start);
+    push @where, "$table._date >  $end"   if defined($end)   && length($end);
   }
   push @where, @{$opt{'where'}} if $opt{'where'};
   my $where = scalar(@where) ? 'WHERE '. join(' AND ', @where ) : '';



More information about the freeside-commits mailing list