diff options
author | ivan <ivan> | 2009-10-24 00:16:28 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-10-24 00:16:28 +0000 |
commit | 508a74ac901619d11a190f9d3c9931785b7c3a3f (patch) | |
tree | 954a8487ae56902692203fa84c98270d85518b96 | |
parent | d0f669da1f1f1161223bb9c1888901243c453d7b (diff) |
eliminate warnings from Business::CreditCard about being passed an empty number
-rw-r--r-- | FS/FS/agent.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/agent.pm b/FS/FS/agent.pm index 28d191a15..f17427517 100644 --- a/FS/FS/agent.pm +++ b/FS/FS/agent.pm @@ -247,7 +247,7 @@ sub payment_gateway { #look for an agent gateway override first my $cardtype; - if ( $options{method} && $options{method} eq 'CC' ) { + if ( $options{method} && $options{method} eq 'CC' && $options{payinfo} ) { $cardtype = cardtype($options{payinfo}); } elsif ( $options{method} && $options{method} eq 'ECHECK' ) { $cardtype = 'ACH'; |