summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2021-08-26 12:45:48 +0200
committerYorhel <git@yorhel.nl>2021-08-26 12:45:48 +0200
commit33d86f75d9cb169e61316e5ca8fefd10e67b1163 (patch)
tree066c6ac84dd9e055557a9f71817e013c04c866aa
parent3c0173ef7e631296d5f33320995ea19df32db96e (diff)
VN::Length: don't display pointless table when all votes are on ignore
-rw-r--r--lib/VNWeb/VN/Length.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/VNWeb/VN/Length.pm b/lib/VNWeb/VN/Length.pm
index 02cfb837..75c135b8 100644
--- a/lib/VNWeb/VN/Length.pm
+++ b/lib/VNWeb/VN/Length.pm
@@ -85,6 +85,7 @@ sub stats_ {
WHERE u.perm_lengthvote IS DISTINCT FROM false AND NOT l.ignore AND l.vid =', \$o->{id}, '
GROUP BY GROUPING SETS ((speed),()) ORDER BY speed'
);
+ return if !$stats->[0]{count};
table_ style => 'margin: 0 auto', sub {
thead_ sub { tr_ sub {