]> git.donarmstrong.com Git - debbugs.git/commitdiff
really fix #484789
authorDon Armstrong <don@donarmstrong.com>
Tue, 27 Jan 2009 01:24:56 +0000 (17:24 -0800)
committerDon Armstrong <don@donarmstrong.com>
Tue, 27 Jan 2009 01:24:56 +0000 (17:24 -0800)
cgi/soap.cgi

index 2b68ddd2f89850698edfdff45de6fffe0770ad74..31b43bab1367681681234c4d07a55252ef259a1c 100755 (executable)
@@ -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 = '';