From 62a11450f67a549eb1e16f338f6fd97c6c346493 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 25 Jan 2014 21:42:56 +0200 Subject: [PATCH] Do not show empty contest categories --- lib/Gruntmaster/Page/Ct.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Gruntmaster/Page/Ct.pm b/lib/Gruntmaster/Page/Ct.pm index f5c6c1f..ac03585 100644 --- a/lib/Gruntmaster/Page/Ct.pm +++ b/lib/Gruntmaster/Page/Ct.pm @@ -70,9 +70,9 @@ sub _generate{ push @finished, $ct if time > contest_end; } - $htc->param(running => \@running); - $htc->param(pending => \@pending); - $htc->param(finished => \@finished); + $htc->param(running => \@running) if @running; + $htc->param(pending => \@pending) if @pending; + $htc->param(finished => \@finished) if @finished; } 1 -- 2.39.2