Skip to content

Commit

Permalink
Update problemset.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Aug 30, 2022
1 parent 096c9e3 commit 4338957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/web/problemset.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
$row = $result[0];
$cnt = $row['upid'] / $page_cnt;
if ($row['upid'] % $page_cnt == 0) $cnt = $cnt-1;
if ($page > $cnt+1 ) $page = $cnt+1 ;
if ($page > $cnt+1 && ! isset($_SESSION[$OJ_NAME.'_administrator']) ) $page = $cnt+1 ;
$pstart = $page_cnt*intval($page)-$page_cnt+1; //start 1
$pend = $pstart+$page_cnt;

Expand Down

0 comments on commit 4338957

Please sign in to comment.