From: doogie <> Date: Thu, 18 Sep 2003 06:37:00 +0000 (-0800) Subject: [project @ 2003-09-17 23:37:00 by doogie] X-Git-Tag: release/2.6.0~788 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5dad9d2df9f08e5b2724fbe3d3ea292da398ff01;p=debbugs.git [project @ 2003-09-17 23:37:00 by doogie] Fix bugfilter, no longer use each(%hash). --- 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)); }