summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfbriere <fbriere>2006-02-14 01:38:31 +0000
committerfbriere <fbriere>2006-02-14 01:38:31 +0000
commitdb3d04bca56bb86414acdcc9b5663446a7d67f0a (patch)
treea084ee7483fae442fecc59cd9aeb91be5c77a15f
parent9b6828c30cf23d5b02d86d0baa560ebb9a757692 (diff)
get_fields now filters out undefs in 3.x
-rwxr-xr-xInternetSecure.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/InternetSecure.pm b/InternetSecure.pm
index 58a6ce7..b90f187 100755
--- a/InternetSecure.pm
+++ b/InternetSecure.pm
@@ -43,6 +43,18 @@ sub set_defaults {
));
}
+# OnlinePayment's get_fields now filters out undefs in 3.x. :(
+#
+sub get_fields {
+ my ($self, @fields) = @_;
+
+ my %content = $self->content;
+
+ my %new = map +($_ => $content{$_}), @fields;
+
+ return %new;
+}
+
# OnlinePayment's remap_fields is buggy, so we simply rewrite it
#
sub remap_fields {