summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdoeditvotes.cgi1
1 files changed, 1 insertions, 0 deletions
diff --git a/doeditvotes.cgi b/doeditvotes.cgi
index 2584d583b..ee0bf1ad7 100755
--- a/doeditvotes.cgi
+++ b/doeditvotes.cgi
@@ -103,6 +103,7 @@ foreach my $id (@buglist) {
foreach my $id (keys %affected) {
SendSQL("select sum(count) from votes where bug_id = $id");
my $v = FetchOneColumn();
+ $v ||= 0;
SendSQL("update bugs set votes = $v, delta_ts=delta_ts where bug_id = $id");
}
SendSQL("unlock tables");