diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-03-19 08:53:31 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-03-19 08:53:58 -0700 |
commit | 6ee6d1bbed1f6dcb5f60a91d3448e6b28aa2b683 (patch) | |
tree | e4e7991836b762310ec8a9f993174e032d606a3e | |
parent | 9f2cdf737a3fb67775ceb74beae1f5212212bdb6 (diff) |
don't barf on status screen without a CC processor enabled
-rw-r--r-- | httemplate/view/Status.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/view/Status.html b/httemplate/view/Status.html index 2d91b0b87..e08bfe44b 100644 --- a/httemplate/view/Status.html +++ b/httemplate/view/Status.html @@ -228,7 +228,8 @@ foreach my $agent ( }) ) { my $gateway = $agent->payment_gateway('method'=>'VISA card', 'nofatal'=>1, ); - next unless $gateway->gateway_namespace eq 'Business::OnlinePayment'; + next unless $gateway + && $gateway->gateway_namespace eq 'Business::OnlinePayment'; eval "use Business::OnlinePayment"; die $@ if $@; #die? my $bop = new Business::OnlinePayment( $gateway->gateway_module, |