From 5dad9d2df9f08e5b2724fbe3d3ea292da398ff01 Mon Sep 17 00:00:00 2001 From: doogie <> Date: Wed, 17 Sep 2003 22:37:00 -0800 Subject: [PATCH] [project @ 2003-09-17 23:37:00 by doogie] Fix bugfilter, no longer use each(%hash). --- cgi/common.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cgi/common.pl b/cgi/common.pl index ba944a0f..3f3d70b6 100644 --- a/cgi/common.pl +++ b/cgi/common.pl @@ -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)); } -- 2.39.5