projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05419e3
)
eliminiate noisy but harmless "Use of uninitialized value in numeric gt (>)" warning
author
ivan
<ivan>
Mon, 26 Oct 2009 01:11:55 +0000
(
01:11
+0000)
committer
ivan
<ivan>
Mon, 26 Oct 2009 01:11:55 +0000
(
01:11
+0000)
FS/FS/part_pkg/flat.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg/flat.pm
b/FS/FS/part_pkg/flat.pm
index
d6432fc
..
d32f188
100644
(file)
--- 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);