From 62f6803b581d174db4f7259c7dcfcca19730fc89 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Tue, 15 Sep 2020 09:02:32 +0200 Subject: Reviews::VNTab: Hide box if there are no reviews to be displayed --- lib/VNWeb/Reviews/VNTab.pm | 1 + 1 file changed, 1 insertion(+) 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'; -- cgit v1.2.3