게시글 정렬 기본값 지정

This commit is contained in:
chicpro
2014-12-08 09:54:49 +09:00
parent fe35a8c782
commit 892c67bae5

View File

@ -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} ";
}