summaryrefslogtreecommitdiff
path: root/PaymentsGateway.pm
diff options
context:
space:
mode:
Diffstat (limited to 'PaymentsGateway.pm')
-rw-r--r--PaymentsGateway.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/PaymentsGateway.pm b/PaymentsGateway.pm
index 9d69b4c..93dd6ef 100644
--- a/PaymentsGateway.pm
+++ b/PaymentsGateway.pm
@@ -184,7 +184,7 @@ sub submit {
}
my $request = join("\n", map { "$_=". $content{$_} }
- grep { $content{$_} ne '' }
+ grep { defined($content{$_}) && $content{$_} ne '' }
@fields ).
"\nendofdata\n";