diff options
-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 02ac6ae..f9aaebe 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); |