aboutsummaryrefslogtreecommitdiff
path: root/boca-1.5.0/src/frun.php
diff options
context:
space:
mode:
Diffstat (limited to 'boca-1.5.0/src/frun.php')
-rw-r--r--boca-1.5.0/src/frun.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/boca-1.5.0/src/frun.php b/boca-1.5.0/src/frun.php
index 3ea398a..97abd1d 100644
--- a/boca-1.5.0/src/frun.php
+++ b/boca-1.5.0/src/frun.php
@@ -727,12 +727,12 @@ function DBNewRun($param,$c=null) {
$b = DBSiteInfo($contest, $site, $c);
$dif = $b["currenttime"];
$rundatediff = $dif;
- if ($dif < 0) {
+ if ($dif < 0) { if(!isset($param['allowneg'])) {
DBExec($c, "rollback work", "DBNewRun(rollback-started)");
LOGError("Tried to submit a run but the contest is not started. SQL=(" . $sql . ")");
MSGError("The contest is not started yet!");
return false;
- }
+ } }
if (!$b["siterunning"]) {
DBExec($c, "rollback work", "DBNewRun(rollback-over)");
LOGError("Tried to submit a run but the contest is over. SQL=(" . $sql . ")");