diff options
author | Yorhel <git@yorhel.nl> | 2021-08-26 12:45:48 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2021-08-26 12:45:48 +0200 |
commit | 33d86f75d9cb169e61316e5ca8fefd10e67b1163 (patch) | |
tree | 066c6ac84dd9e055557a9f71817e013c04c866aa | |
parent | 3c0173ef7e631296d5f33320995ea19df32db96e (diff) |
VN::Length: don't display pointless table when all votes are on ignore
-rw-r--r-- | lib/VNWeb/VN/Length.pm | 1 |
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 { |