diff --git a/bbs/group.php b/bbs/group.php index 134fb93f3..40fbd6b67 100644 --- a/bbs/group.php +++ b/bbs/group.php @@ -18,7 +18,7 @@ include_once('./_head.php'); 'mobile' order by bo_table "; +$sql = " select bo_table, bo_subject from {$g4[board_table]} where gr_id = '{$gr_id}' and bo_list_level <= '{$member[mb_level]}' and bo_device <> 'mobile' order by bo_order "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { $lt_style = ""; diff --git a/index.php b/index.php index 35341a743..d2d03f757 100644 --- a/index.php +++ b/index.php @@ -21,7 +21,7 @@ include_once('./_head.php'); 'mobile' order by gr_id, bo_table "; +$sql = " select bo_table from `{$g4['board_table']}` a left join `{$g4['group_table']}` b on (a.gr_id=b.gr_id) where a.bo_device <> 'mobile' order by b.gr_order, a.bo_order "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { $lt_style = "";