summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2010-01-06 04:43:49 +0000
committerivan <ivan>2010-01-06 04:43:49 +0000
commit4b503bee677b9066f2996966fd3b4a186a938501 (patch)
tree87cfbc8c5808f48e186316826c2a5ffef15ef66c
parentbfb9f2a9119cf37c0d21e7cba6e09ebc3a1ae537 (diff)
eliminate ya "use of uninitialized value" warning
-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 10201288c..9462af51e 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -4932,10 +4932,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' => '' } )
+ )
)
;