]> iEval git - plack-app-gruntmaster.git/commitdiff
Fix previous commit
authorMarius Gavrilescu <marius@ieval.ro>
Thu, 12 Feb 2015 14:40:24 +0000 (16:40 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Thu, 12 Feb 2015 14:40:24 +0000 (16:40 +0200)
lib/Plack/App/Gruntmaster.pm

index 39928bc87c5cb9eb5f78e2d8b58c545197da022c..3ec4e78300fd623a2c85457c0e5b07c715d2de18 100644 (file)
@@ -244,7 +244,7 @@ sub dispatch_request{
                        my $source = $prog ? read_file $prog->path : $_{source_code};
                        unlink $prog->path if $prog;
                        my $private = (problem->private && !$_{contest}) ? 1 : 0;
-                       $private = 1 if contest->is_pending;
+                       $private = 1 if contest && contest->is_pending;
                        my $newjob = db->jobs->create({
                                maybe contest => $_{contest},
                                private => $private,
This page took 0.025278 seconds and 4 git commands to generate.