sub _generate{
my ($self, $htc, $lang, $env, $ct, $id) = @_;
debug $env => "language is '$lang', contest is '$ct' and id is '$id'";
- local $Gruntmaster::Data::contest = $ct;
+ local $Gruntmaster::Data::contest = $ct if $ct;
my @tests = ();
die if defined $contest && (time > contest_end $contest);
return reply 'A required parameter was not supplied' if grep { !defined } $problem, $format, $prog;
- local $Gruntmaster::Data::contest = $contest;
+ local $Gruntmaster::Data::contest = $contest if $contest;
my $job = push_job (
date => time,