]> iEval git - plack-app-gruntmaster.git/commitdiff
Fix editorials for contests with less than 4 problems
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 25 Feb 2015 17:41:34 +0000 (19:41 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 25 Feb 2015 17:41:34 +0000 (19:41 +0200)
lib/Plack/App/Gruntmaster/HTML.pm

index 947f039238b0fb20ba4a638ae25dbad03609ddd0..eb3c56765964e4d1ec09fb70d14b7865c64b3738 100644 (file)
@@ -284,6 +284,6 @@ sub process_ed {
                $div->set_child_content(class => 'solution', literal $data->{solution});
                $div->fclass('problem')->namedlink($data->{id}, $data->{name});
        };
-       my @pb = map { @{$args{$_}} } qw/beginner easy medium hard/;
+       my @pb = map { @{$args{$_} // []} } qw/beginner easy medium hard/;
        $tree->fclass('well')->iter3(\@pb, $iter);
 }
This page took 0.024539 seconds and 4 git commands to generate.