Skip to content

Commit

Permalink
Update userinfo.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Feb 10, 2025
1 parent 039931f commit 00f9c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/web/userinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function extractPlistData($inputString) {
$exceptions=array();
if(isset($OJ_NOIP_KEYWORD)&&$OJ_NOIP_KEYWORD && !isset($_SESSION[$OJ_NAME."_administrator"])){ // && !isset($_SESSION[$OJ_NAME."_administrator"]) 管理员不受限
$now = date('Y-m-d H:i', time());
$sql="select contest_id from contest c where c.start_time<'$now' and c.end_time>'$now' and ( c.title like '%$OJ_NOIP_KEYWORD%' or (c.contest_type & 20) >0 )";
$sql="select contest_id from contest c where c.start_time<'$now' and c.end_time>'$now' and ( c.title like '%$OJ_NOIP_KEYWORD%' or ((c.contest_type & 20) >0 and end_time>now() ) )";
$row=pdo_query($sql);
if(count($row)>0){
$exceptions=array_column($row,'contest_id');
Expand Down

0 comments on commit 00f9c2b

Please sign in to comment.