fix warning
authorMark Wells <mark@freeside.biz>
Wed, 29 Jun 2016 02:20:05 +0000 (19:20 -0700)
committerMark Wells <mark@freeside.biz>
Wed, 29 Jun 2016 02:20:05 +0000 (19:20 -0700)
FS/FS/cust_main_Mixin.pm

index adf8c71..1955746 100644 (file)
@@ -663,7 +663,7 @@ sub unsuspend_balance {
   my $self = shift;
   my $cust_main = $self->cust_main;
   my $conf = $self->conf;
   my $self = shift;
   my $cust_main = $self->cust_main;
   my $conf = $self->conf;
-  my $setting = $conf->config('unsuspend_balance');
+  my $setting = $conf->config('unsuspend_balance') or return;
   my $maxbalance;
   if ($setting eq 'Zero') {
     $maxbalance = 0;
   my $maxbalance;
   if ($setting eq 'Zero') {
     $maxbalance = 0;