From fec3f3beae907f425637d40d9fd600aee3d64257 Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" Date: Thu, 17 Feb 2000 14:57:57 +0000 Subject: [PATCH] Fixed icky infinite loop bug. --- webtools/bugzilla/globals.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/webtools/bugzilla/globals.pl b/webtools/bugzilla/globals.pl index cbfc87357ea..8207497691e 100644 --- a/webtools/bugzilla/globals.pl +++ b/webtools/bugzilla/globals.pl @@ -666,7 +666,7 @@ sub RemoveVotes { $whopart); my @list; while (MoreSQLData()) { - my ($name, $count) = (@_); + my ($name, $count) = (FetchSQLData()); push(@list, [$name, $count]); } if (0 < @list) { @@ -678,8 +678,9 @@ sub RemoveVotes { $substs{"bugid"} = $id; $substs{"reason"} = $reason; $substs{"count"} = $count; - print SENDMAIL PerformSubsts(Param("voteremovedmail"), - \%substs); + my $msg = PerformSubsts(Param("voteremovedmail"), + \%substs); + print SENDMAIL $msg; close SENDMAIL; } }