]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2003-09-17 23:37:00 by doogie]
authordoogie <>
Thu, 18 Sep 2003 06:37:00 +0000 (22:37 -0800)
committerdoogie <>
Thu, 18 Sep 2003 06:37:00 +0000 (22:37 -0800)
Fix bugfilter, no longer use each(%hash).

cgi/common.pl

index ba944a0ffb15c3a0f5f79253f05b0c93ec2aeea2..3f3d70b6f716b01cc143bfafdc2e08a4f390cfac 100644 (file)
@@ -462,7 +462,8 @@ sub allbugs {
 
 sub bugmatches(\%\%) {
     my ($hash, $status) = @_;
-    while ((my ($key, $value) = each(%$hash))) {
+    foreach my $key( keys( %$hash ) ) {
+        my $value = $hash->{$key};
        my $sub = $field_match{$key};
        return 1 if ($sub->($key, $value, $status));
     }