X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=cgi%2Fsoap.cgi;h=31b43bab1367681681234c4d07a55252ef259a1c;hb=2e85e976dcd2cc3bdc89715eb8465abad8b85df6;hp=2b68ddd2f89850698edfdff45de6fffe0770ad74;hpb=54202d00ce119d1d0227c015b502d32490b2a380;p=debbugs.git diff --git a/cgi/soap.cgi b/cgi/soap.cgi index 2b68ddd..31b43ba 100755 --- a/cgi/soap.cgi +++ b/cgi/soap.cgi @@ -24,8 +24,7 @@ my $soap = Debbugs::SOAP::Server # kill off all of the date/time related bits in the serializer. my $typelookup = $soap->serializer()->{_typelookup}; for my $key (keys %{$typelookup}) { - next unless defined $_ and /Month|Day|Year|date|time|duration/i; - delete $typelookup->{$key}; + delete $typelookup->{$key} if defined $key and $key =~ /Month|Day|Year|date|time|duration/i; } our $warnings = '';