Fixed icky infinite loop bug.

git-svn-id: svn://10.0.0.236/trunk@61195 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
terry%mozilla.org
2000-02-17 14:57:57 +00:00
parent ab0f9ec310
commit 2a81db3471

View File

@@ -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;
}
}