From 697101c2fc9fd11abce0bb2a8c10747f7913948a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= Date: Fri, 29 Mar 2024 17:38:50 +0800 Subject: [PATCH] Update tag.lib.php --- src/system/taglib/tag.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/taglib/tag.lib.php b/src/system/taglib/tag.lib.php index 83450a06..85b8dac1 100755 --- a/src/system/taglib/tag.lib.php +++ b/src/system/taglib/tag.lib.php @@ -38,12 +38,12 @@ function lib_tag(&$ctag, &$refObj) $addsql .= " WHERE typeid='$typeid' "; } } - if ($ltype == 'rand') $orderby = 'rand() '; + if ($ltype == 'rand') $orderby = ' rand() '; else if ($ltype == 'week') $orderby = ' weekcc DESC '; else if ($ltype == 'month') $orderby = ' monthcc DESC '; else if ($ltype == 'hot') $orderby = ' count DESC '; else if ($ltype == 'total') $orderby = ' total DESC '; - else $orderby = 'addtime DESC '; + else $orderby = ' addtime DESC '; $dsql->SetQuery("SELECT * FROM `#@__tagindex` $addsql ORDER BY $orderby LIMIT 0,$num"); $dsql->Execute(); $ctp = new DedeTagParse();