修复漏掉的参数
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user