From: ivan Date: Mon, 26 Oct 2009 01:11:53 +0000 (+0000) Subject: eliminiate noisy but harmless "Use of uninitialized value in numeric gt (>)" warning X-Git-Tag: root_of_svc_elec_features~740 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=08ab7010467cf25578acdf8d9a9a068a87f1c49f;hp=534d783cfda72bbea29a78954bafa1d25f443782 eliminiate noisy but harmless "Use of uninitialized value in numeric gt (>)" warning --- diff --git a/FS/FS/part_pkg/flat.pm b/FS/FS/part_pkg/flat.pm index 02ac6aeed..f9aaebee7 100644 --- a/FS/FS/part_pkg/flat.pm +++ b/FS/FS/part_pkg/flat.pm @@ -223,7 +223,7 @@ sub usage_valuehash { 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);