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();