avoid harmless warning: Use of uninitialized value in string ne
[freeside.git] / FS / FS / cust_pay.pm
index 201b427..4ff2919 100644 (file)
@@ -345,7 +345,8 @@ sub delete {
     return $error;
   }
 
-  if ( $conf->config('deletepayments') ne '' ) {
+  if (    $conf->exists('deletepayments')
+       && $conf->config('deletepayments') ne '' ) {
 
     my $cust_main = $self->cust_main;