From 5dbd73117702fac9747327d7f7ad098a1861638a Mon Sep 17 00:00:00 2001 From: klarkxy <278370456@qq.com> Date: Fri, 11 Oct 2024 15:22:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=BC=8F=E6=8E=89=E7=9A=84?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/contest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/contest.php b/web/contest.php index e5b4564..46ae36a 100644 --- a/web/contest.php +++ b/web/contest.php @@ -233,10 +233,10 @@ if (isset($_GET['cid'])) { $result = pdo_query($sql, $keyword); } else { - $sql = "SELECT * FROM contest WHERE contest.defunct='N' and ( `private` =0 or `contest_id` in (select `contest_id` from `testusers` where `user_id`=? )) ORDER BY contest_id DESC"; + $sql = "SELECT * FROM contest WHERE contest.defunct='N' and ( `private` = 0 or `contest_id` in (select `contest_id` from `testusers` where `user_id`=? )) ORDER BY contest_id DESC"; $sql .= " limit " . strval($pstart) . "," . strval($pend); //echo $sql; - $result = mysql_query_cache($sql); + $result = mysql_query_cache($sql, $user_id); } $view_contest = array();