浏览代码

Update taglist.class.php

tags/6.3.2
叙述、别离 4 个月前
父节点
当前提交
4f73117d5d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/system/archive/taglist.class.php

+ 2
- 2
src/system/archive/taglist.class.php 查看文件

@@ -59,7 +59,7 @@ class TagList
foreach ($GLOBALS['PubFields'] as $k => $v) $this->Fields[$k] = $v; foreach ($GLOBALS['PubFields'] as $k => $v) $this->Fields[$k] = $v;
//读取Tag信息 //读取Tag信息
if (!empty($this->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)) { if (!is_array($this->TagInfos)) {
ShowMsg('当前标签不存在,系统自动返回主页', '/'); ShowMsg('当前标签不存在,系统自动返回主页', '/');
exit(); exit();
@@ -287,7 +287,7 @@ class TagList
$innertext = trim($innertext); $innertext = trim($innertext);
if ($innertext == '') $innertext = GetSysTemplets("list_fulllist.htm"); if ($innertext == '') $innertext = GetSysTemplets("list_fulllist.htm");
$idlists = $ordersql = ''; $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(); $this->dsql->Execute();
while ($row = $this->dsql->GetArray()) { while ($row = $this->dsql->GetArray()) {
$idlists .= ($idlists == '' ? $row['aid'] : ','.$row['aid']); $idlists .= ($idlists == '' ? $row['aid'] : ','.$row['aid']);


正在加载...
取消
保存