From: terry%mozilla.org <> Date: Thu, 17 Feb 2000 22:57:57 +0000 (+0000) Subject: Fixed icky infinite loop bug. X-Git-Tag: bugzilla-2.12~383 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f1bb0cc0ad32afe31155226ffa6974c4abdc75f;p=thirdparty%2Fbugzilla.git Fixed icky infinite loop bug. --- diff --git a/globals.pl b/globals.pl index cbfc87357e..8207497691 100644 --- a/globals.pl +++ b/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; } }