From ecbc985f302d95347787fcea68d96a7691c33fee Mon Sep 17 00:00:00 2001 From: tianya Date: Mon, 20 Mar 2023 21:07:40 +0800 Subject: [PATCH] Update archives.class.php --- src/system/archive/archives.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/archive/archives.class.php b/src/system/archive/archives.class.php index 3180a89b..e0a6cac5 100755 --- a/src/system/archive/archives.class.php +++ b/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'";