aboutsummaryrefslogtreecommitdiff
path: root/src/fproblem.php
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-11-01 17:35:22 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-11-01 17:35:22 +0000
commit689ca417a57f7d3e7ba2836b09e493a61a13aac1 (patch)
tree8d97492e81f453a97c00c3e560864f586321b296 /src/fproblem.php
parent9583d6ea7bb503fb0094751c5a871b3fb65de84a (diff)
parent6c7db3cfb3e72e6bf7bb8b5c530ec41fa03ec666 (diff)
downloadboca-689ca417a57f7d3e7ba2836b09e493a61a13aac1.tar.gz
boca-689ca417a57f7d3e7ba2836b09e493a61a13aac1.zip
Merge branch 'devel'
Diffstat (limited to 'src/fproblem.php')
-rw-r--r--src/fproblem.php2
1 files changed, 2 insertions, 0 deletions
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, " .