diff options
author | ivan <ivan> | 2010-01-06 04:43:49 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-01-06 04:43:49 +0000 |
commit | 4b503bee677b9066f2996966fd3b4a186a938501 (patch) | |
tree | 87cfbc8c5808f48e186316826c2a5ffef15ef66c | |
parent | bfb9f2a9119cf37c0d21e7cba6e09ebc3a1ae537 (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 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' => '' } ) + ) ) ; |