From d7cef9cc7da81d45074b459a6f5b87aa23ac2419 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 23 Jul 2009 19:46:42 +0000 Subject: [PATCH] avoid harmless warning: Use of uninitialized value in string ne --- FS/FS/cust_pay.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FS/FS/cust_pay.pm b/FS/FS/cust_pay.pm index 08699acd1..21a6068c3 100644 --- a/FS/FS/cust_pay.pm +++ b/FS/FS/cust_pay.pm @@ -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; -- 2.20.1