summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2009-10-26 01:11:54 +0000
committerivan <ivan>2009-10-26 01:11:54 +0000
commita552f5aae37f8156cdb9a75cb762589b36ce6b61 (patch)
tree275bbefa6015aa842202be5a1fa5196c5594859e
parent8c376cbb6b47cf84c8b2afccddd79458296a86a2 (diff)
eliminiate noisy but harmless "Use of uninitialized value in numeric gt (>)" warning
-rw-r--r--FS/FS/part_pkg/flat.pm2
1 files changed, 1 insertions, 1 deletions
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);