summaryrefslogtreecommitdiff
path: root/FS/FS/cust_main.pm
diff options
context:
space:
mode:
authorivan <ivan>2010-01-06 04:43:46 +0000
committerivan <ivan>2010-01-06 04:43:46 +0000
commit59dedfd6c5b60665ecc7ea9e6e07ea45e5fdfcdd (patch)
treebe16ca57814a895aa52d04e9b4b2e95d8d5bb267 /FS/FS/cust_main.pm
parentd78cfd10ddb82f27cdafaaeb80479d9bb6723480 (diff)
eliminate ya "use of uninitialized value" warning
Diffstat (limited to 'FS/FS/cust_main.pm')
-rw-r--r--FS/FS/cust_main.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index d9db2ed..fc16f14 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' => '' } )
+ )
)
;