[freeside-commits] freeside/FS/FS/part_pkg flat.pm,1.34,1.35

Ivan,,, ivan at wavetail.420.am
Sun Oct 25 18:11:55 PDT 2009


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

Modified Files:
	flat.pm 
Log Message:
eliminiate noisy but harmless "Use of uninitialized value in numeric gt (>)" warning

Index: flat.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/flat.pm,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- flat.pm	5 Aug 2009 23:34:28 -0000	1.34
+++ flat.pm	26 Oct 2009 01:11:53 -0000	1.35
@@ -223,7 +223,7 @@
 
 sub reset_usage {
   my($self, $cust_pkg, %opt) = @_;
-  warn "    resetting usage counters" if $opt{debug} > 1;
+  warn "   resetting usage counters" if defined($opt{debug}) && $opt{debug} > 1;
   my %values = $self->usage_valuehash;
   if ($self->option('usage_rollover', 1)) {
     $cust_pkg->recharge(\%values);



More information about the freeside-commits mailing list