From: Marius Gavrilescu Date: Sat, 25 Jan 2014 19:42:56 +0000 (+0200) Subject: Do not show empty contest categories X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=62a11450f67a549eb1e16f338f6fd97c6c346493;p=plack-app-gruntmaster.git Do not show empty contest categories --- 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