Skip to content

Commit

Permalink
Update contest-check.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Mar 4, 2024
1 parent 46ab913 commit 49844af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/web/contest-check.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
}
}

if(str_contains($view_description,"限时")){
if(str_contains($view_description,"限时")&&isset($_SESSION[$OJ_NAME."_user_id"])){
echo "<!-- 个人限时赛 -->";
$contest_limit_minutes=intval(getPartByMark($view_description,"限时","分钟")); //允许比赛描述中用 "限时xx分钟" 规定个人做题时间。
if($contest_limit_minutes==0) $contest_limit_minutes=120;
Expand Down

0 comments on commit 49844af

Please sign in to comment.