瀏覽代碼

Update archives.class.php

tags/6.2.6
tianya 1 年之前
父節點
當前提交
ecbc985f30
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/system/archive/archives.class.php

+ 1
- 1
src/system/archive/archives.class.php 查看文件

@@ -98,7 +98,7 @@ class Archives
}
//为了减少重复查询,这里直接把附加表查询记录放在$this->addTableRow中,在ParAddTable()不再查询
if ($this->ChannelUnit->ChannelInfos['addtable'] != '') {
if ($this->ChannelUnit->ChannelID < 0) {
if ($this->ChannelUnit->ChannelID < -1) {
$query = "SELECT tb.*,mb.uname,mb.face FROM `{$this->ChannelUnit->ChannelInfos['addtable']}` tb LEFT JOIN `#@__member` mb on tb.mid = mb.mid WHERE tb.`aid` = '$aid'";
} else {
$query = "SELECT * FROM `{$this->ChannelUnit->ChannelInfos['addtable']}` WHERE `aid` = '$aid'";


Loading…
取消
儲存