aboutsummaryrefslogtreecommitdiff
path: root/src/fscore.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/fscore.php')
-rw-r--r--src/fscore.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fscore.php b/src/fscore.php
index ec03091..6faeb63 100644
--- a/src/fscore.php
+++ b/src/fscore.php
@@ -374,7 +374,7 @@ function DBScoreSite($contest, $site, $verifylastmile, $hor=-1, $data=null) {
if ($i>=$n) break;
if($a[$i]["anstime"] <= $ta && $a[$i]["user"]==$user && $a[$i]["problem"]==$problem && $a[$i]["yes"]=='t') {
$timet = (int) (($a[$i]["time"])/60);
- if(!isset($resp[$user . '-' . $site]["first"]) || $timet < $resp[$user . '-' . $site]["first"])
+ if(!isset($resp[$user . '-' . $site]["first"]) || $timet > $resp[$user . '-' . $site]["first"]) // > means last run, < would be first run
$resp[$user . '-' . $site]["first"] = $timet;
$time += $timet;
$resp[$user . '-' . $site]["problem"][$problem]["time"] = $timet;