summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--globals.pl7
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;
}
}