From 892c67bae5919e57dc6a16a301747b722772a001 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 8 Dec 2014 09:54:49 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=EA=B8=80=20=EC=A0=95?= =?UTF-8?q?=EB=A0=AC=20=EA=B8=B0=EB=B3=B8=EA=B0=92=20=EC=A7=80=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/list.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bbs/list.php b/bbs/list.php index 819fdf13f..f964d33ed 100644 --- a/bbs/list.php +++ b/bbs/list.php @@ -149,7 +149,9 @@ if (!$sst) { $sst = preg_match("/^(wr_datetime|wr_hit|wr_good|wr_nogood)$/i", $sst) ? $sst : ""; } -$sql_order = ''; +if(!$sst) + $sst = "wr_num, wr_reply"; + if ($sst) { $sql_order = " order by {$sst} {$sod} "; }