fix warning
authorMark Wells <mark@freeside.biz>
Wed, 30 Jan 2013 00:32:29 +0000 (16:32 -0800)
committerMark Wells <mark@freeside.biz>
Wed, 30 Jan 2013 20:10:27 +0000 (12:10 -0800)
FS/FS/cust_main/Billing.pm

index 1487fee..395e629 100644 (file)
@@ -1751,8 +1751,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 ".