diff options
author | terry%mozilla.org <> | 2000-02-17 23:57:57 +0100 |
---|---|---|
committer | terry%mozilla.org <> | 2000-02-17 23:57:57 +0100 |
commit | 3f1bb0cc0ad32afe31155226ffa6974c4abdc75f (patch) | |
tree | 55386e4e63e30ba960b99e63424f9e4d230f5e8b | |
parent | c4246f55693582e74fd58ad5cbc2e67d8e41f652 (diff) | |
download | bugzilla-3f1bb0cc0ad32afe31155226ffa6974c4abdc75f.tar.gz bugzilla-3f1bb0cc0ad32afe31155226ffa6974c4abdc75f.tar.xz |
Fixed icky infinite loop bug.
-rw-r--r-- | globals.pl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/globals.pl b/globals.pl index cbfc87357..820749769 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; } } |