From bdcc78997500afd66d78a5308a0bf2ce591c2030 Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Wed, 1 Nov 2017 15:22:43 +0000 Subject: no viewing of prob before main --- src/fproblem.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/fproblem.php') diff --git a/src/fproblem.php b/src/fproblem.php index a66f62c..c14a61b 100644 --- a/src/fproblem.php +++ b/src/fproblem.php @@ -457,6 +457,8 @@ function DBGetProblems($contest,$showanyway=false) { if ($b["currenttime"] < 0 && !$showanyway) return array(); + if(($c = DBContestInfo($contest)) == null) return array(); + if (time() < $c['conteststartdate'] && !$showanyway) return array(); $c = DBConnect(); $sql = "select distinct p.problemnumber as number, p.problemname as problem, " . -- cgit v1.2.3