avoid harmless warning: Use of uninitialized value in string ne
authorivan <ivan>
Thu, 23 Jul 2009 19:46:42 +0000 (19:46 +0000)
committerivan <ivan>
Thu, 23 Jul 2009 19:46:42 +0000 (19:46 +0000)
FS/FS/cust_pay.pm

index 08699ac..21a6068 100644 (file)
@@ -339,7 +339,8 @@ sub delete {
     return $error;
   }
 
-  if ( $conf->config('deletepayments') ne '' ) {
+  if (    $conf->exists('deletepayments')
+       && $conf->config('deletepayments') ne '' ) {
 
     my $cust_main = $self->cust_main;