Browse Source

Update archives.class.php

tags/6.2.6
tianya 1 year ago
parent
commit
ecbc985f30
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/system/archive/archives.class.php

+ 1
- 1
src/system/archive/archives.class.php View File

@@ -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…
Cancel
Save