summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-01-29 16:27:17 -0800
committerMark Wells <mark@freeside.biz>2013-01-30 12:09:29 -0800
commit6bd91fa5feb41ea3294bdaee5fe1c1134f19c330 (patch)
treed3ce2e1f5b7afc6ab71d1f9e2a92cb4b2457e138 /FS
parent30ee235522ce53a21dd3c1597000663d25685ac4 (diff)
fix warning
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_main/Billing.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/cust_main/Billing.pm b/FS/FS/cust_main/Billing.pm
index deb5e84d1..69fbda42e 100644
--- a/FS/FS/cust_main/Billing.pm
+++ b/FS/FS/cust_main/Billing.pm
@@ -1819,8 +1819,9 @@ sub due_cust_event {
#???
#my $DEBUG = $opt{'debug'}
+ $opt{'debug'} ||= 0; # silence some warnings
local($DEBUG) = $opt{'debug'}
- if defined($opt{'debug'}) && $opt{'debug'} > $DEBUG;
+ if $opt{'debug'} > $DEBUG;
$DEBUG = $FS::cust_main::DEBUG if $FS::cust_main::DEBUG > $DEBUG;
warn "$me due_cust_event called with options ".