summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-09-15 09:02:32 +0200
committerYorhel <git@yorhel.nl>2020-09-15 09:02:32 +0200
commit62f6803b581d174db4f7259c7dcfcca19730fc89 (patch)
tree12788b5821116c91c6d1f7d79b3addd87d1d569d
parent5e9888974995fb0487e1cb80f447061360c3a2cc (diff)
Reviews::VNTab: Hide box if there are no reviews to be displayed
-rw-r--r--lib/VNWeb/Reviews/VNTab.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/VNWeb/Reviews/VNTab.pm b/lib/VNWeb/Reviews/VNTab.pm
index e575a6fa..796193b1 100644
--- a/lib/VNWeb/Reviews/VNTab.pm
+++ b/lib/VNWeb/Reviews/VNTab.pm
@@ -19,6 +19,7 @@ sub reviews_ {
WhERE NOT r.c_flagged AND r.vid =', \$v->{id}, 'AND', ($mini ? 'NOT' : ''), 'r.isfull
ORDER BY r.c_up-r.c_down DESC'
);
+ return if !@$lst;
div_ class => 'mainbox', sub {
h1_ $mini ? 'Mini reviews' : 'Full reviews';