From 89826fe55b3345238c1a9f27f6529641eccfd4c6 Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Tue, 29 Aug 2017 12:33:19 +0100 Subject: bug fix --- src/frun.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/frun.php b/src/frun.php index 77677ad..e4fd323 100644 --- a/src/frun.php +++ b/src/frun.php @@ -514,7 +514,7 @@ function DBGiveUpRunAutojudging($contest, $site, $number, $ip="", $ans="", $from $t = time(); $b = DBSiteInfo($contest, $site, $c); - if($fromadmin && $b["siteautojudge"]=="t") { + if(!$fromadmin && $b["siteautojudge"]=="t") { if(DBUpdateRunO($contest, $site, $a["usernumber"], $site, $number, 7, $c)==false) { // 7 means contact staff DBExec($c, "rollback work", "DBGiveUpRunAutojudging(rollback auto)"); LOGError("Unable to automatically update a run answer (run=$number, site=$site, ". -- cgit v1.2.3