зеркало из https://github.com/mozilla/pjs.git
Fixed icky infinite loop bug.
This commit is contained in:
Родитель
c138b25034
Коммит
fec3f3beae
|
@ -666,7 +666,7 @@ sub RemoveVotes {
|
||||||
$whopart);
|
$whopart);
|
||||||
my @list;
|
my @list;
|
||||||
while (MoreSQLData()) {
|
while (MoreSQLData()) {
|
||||||
my ($name, $count) = (@_);
|
my ($name, $count) = (FetchSQLData());
|
||||||
push(@list, [$name, $count]);
|
push(@list, [$name, $count]);
|
||||||
}
|
}
|
||||||
if (0 < @list) {
|
if (0 < @list) {
|
||||||
|
@ -678,8 +678,9 @@ sub RemoveVotes {
|
||||||
$substs{"bugid"} = $id;
|
$substs{"bugid"} = $id;
|
||||||
$substs{"reason"} = $reason;
|
$substs{"reason"} = $reason;
|
||||||
$substs{"count"} = $count;
|
$substs{"count"} = $count;
|
||||||
print SENDMAIL PerformSubsts(Param("voteremovedmail"),
|
my $msg = PerformSubsts(Param("voteremovedmail"),
|
||||||
\%substs);
|
\%substs);
|
||||||
|
print SENDMAIL $msg;
|
||||||
close SENDMAIL;
|
close SENDMAIL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче