]> iEval git - gruntmaster-page.git/commitdiff
Do not show empty contest categories
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 25 Jan 2014 19:42:56 +0000 (21:42 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 25 Jan 2014 19:42:56 +0000 (21:42 +0200)
lib/Gruntmaster/Page/Ct.pm

index f5c6c1f0d2cc9ed6ee53f83137f3b6bb1a5314c4..ac035854dd637a48824a8787e49c7924c117d0d7 100644 (file)
@@ -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
This page took 0.027322 seconds and 4 git commands to generate.