diff options
author | ivan <ivan> | 2009-10-26 01:11:55 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-10-26 01:11:55 +0000 |
commit | 1ea0d1340fc53880d8d52c67a853dd3e1c07db33 (patch) | |
tree | a7f2ddaedf783904fa15f913c450e8f9866c81c2 | |
parent | 05419e3838b401019fed034f97e63e3d7e83b539 (diff) |
eliminiate noisy but harmless "Use of uninitialized value in numeric gt (>)" warning
-rw-r--r-- | FS/FS/part_pkg/flat.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/part_pkg/flat.pm b/FS/FS/part_pkg/flat.pm index d6432fcb8..d32f1881a 100644 --- a/FS/FS/part_pkg/flat.pm +++ b/FS/FS/part_pkg/flat.pm @@ -215,7 +215,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); |