From: Marius Gavrilescu Date: Mon, 26 May 2014 19:03:41 +0000 (+0300) Subject: Fix app.psgi X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=936ea404e1a7a3fe795a8114969d54df64d8a84a;p=gruntmaster-page.git Fix app.psgi --- diff --git a/app.psgi b/app.psgi index 5ddac81..45f7466 100644 --- a/app.psgi +++ b/app.psgi @@ -48,9 +48,9 @@ sub is_problem_in_contest { return 1 if $db->contest_problems->find($ct, $pb); return '' if defined $ct; for my $cp ($db->problem($pb)->contest_problems) { - return 1 if $cp->contest->stop >= time; + return '' if $cp->contest->stop >= time; } - '' + 1 } sub admin_required {