avoid harmless warning: Use of uninitialized value in string ne
authorivan <ivan>
Thu, 23 Jul 2009 19:46:05 +0000 (19:46 +0000)
committerivan <ivan>
Thu, 23 Jul 2009 19:46:05 +0000 (19:46 +0000)
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;