diff options
author | ivan <ivan> | 2010-01-06 04:43:46 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-01-06 04:43:46 +0000 |
commit | 59dedfd6c5b60665ecc7ea9e6e07ea45e5fdfcdd (patch) | |
tree | be16ca57814a895aa52d04e9b4b2e95d8d5bb267 | |
parent | d78cfd10ddb82f27cdafaaeb80479d9bb6723480 (diff) |
eliminate ya "use of uninitialized value" warning
-rw-r--r-- | FS/FS/cust_main.pm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index d9db2ed16..fc16f14a6 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -5043,10 +5043,12 @@ sub _new_bop_required { my $botpp = 'Business::OnlineThirdPartyPayment'; return 1 - if ( $conf->config('business-onlinepayment-namespace') eq $botpp || - scalar( grep { $_->gateway_namespace eq $botpp } - qsearch( 'payment_gateway', { 'disabled' => '' } ) - ) + if ( ( $conf->exists('business-onlinepayment-namespace') + && $conf->config('business-onlinepayment-namespace') eq $botpp + ) + or scalar( grep { $_->gateway_namespace eq $botpp } + qsearch( 'payment_gateway', { 'disabled' => '' } ) + ) ) ; |