From 43389578391db4a874ade802bb643d6311e9619f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B5=A9=E6=96=8C?= Date: Tue, 30 Aug 2022 11:04:37 +0800 Subject: [PATCH] Update problemset.php --- trunk/web/problemset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/web/problemset.php b/trunk/web/problemset.php index fc6eb73e887..ae45bf8feb8 100644 --- a/trunk/web/problemset.php +++ b/trunk/web/problemset.php @@ -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;