Skip to content

Commit

Permalink
Update problem.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Mar 15, 2024
1 parent 12b8283 commit ffe2233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/web/problem.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
$pid = intval($_GET['pid']);

if (isset($_SESSION[$OJ_NAME.'_'.'administrator']) || isset($_SESSION[$OJ_NAME.'_'.'contest_creator']) || isset($_SESSION[$OJ_NAME.'_'.'problem_editor']))
$sql = "SELECT langmask,private,defunct FROM `contest` WHERE `defunct`='N' AND `contest_id`=?";
$sql = "SELECT langmask,private,defunct FROM `contest` WHERE `contest_id`=?";
else
$sql = "SELECT langmask,private,defunct FROM `contest` WHERE `defunct`='N' AND `contest_id`=? AND (`start_time`<='$now' AND ('$now'<`end_time` or private='N') )";

Expand Down

0 comments on commit ffe2233

Please sign in to comment.