From 4f73117d5dc5f0d74d3e96aa9f53cd498c387142 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: Tue, 26 Nov 2024 21:33:22 +0800 Subject: [PATCH] Update taglist.class.php --- src/system/archive/taglist.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/archive/taglist.class.php b/src/system/archive/taglist.class.php index 4f37d77f..178028d1 100755 --- a/src/system/archive/taglist.class.php +++ b/src/system/archive/taglist.class.php @@ -59,7 +59,7 @@ class TagList foreach ($GLOBALS['PubFields'] as $k => $v) $this->Fields[$k] = $v; //读取Tag信息 if (!empty($this->Tag)) { - $this->TagInfos = $this->dsql->GetOne("SELECT * FROM `#@__tagindex` where id = '{$this->Tag}' "); + $this->TagInfos = $this->dsql->GetOne("SELECT * FROM `#@__tagindex` WHERE id='{$this->Tag}' "); if (!is_array($this->TagInfos)) { ShowMsg('当前标签不存在,系统自动返回主页', '/'); exit(); @@ -287,7 +287,7 @@ class TagList $innertext = trim($innertext); if ($innertext == '') $innertext = GetSysTemplets("list_fulllist.htm"); $idlists = $ordersql = ''; - $this->dsql->SetQuery("SELECT aid FROM `#@__taglist` WHERE tid = '{$this->TagInfos['id']}' AND arcrank>-1 LIMIT $limitstart,$getrow"); + $this->dsql->SetQuery("SELECT aid FROM `#@__taglist` WHERE tid='{$this->TagInfos['id']}' AND arcrank>-1 ORDER by aid DESC LIMIT $limitstart,$getrow"); $this->dsql->Execute(); while ($row = $this->dsql->GetArray()) { $idlists .= ($idlists == '' ? $row['aid'] : ','.$row['aid']);