From ce8f51d662b80bafbc1d03b9c76aaf0442cb896c Mon Sep 17 00:00:00 2001 From: Winnerzyy <75526510@qq.com> Date: Mon, 12 Jul 2021 19:14:08 +0000 Subject: [PATCH] update application/cms/controller/Index.php. --- application/cms/controller/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/cms/controller/Index.php b/application/cms/controller/Index.php index 8673ffd0..68410173 100644 --- a/application/cms/controller/Index.php +++ b/application/cms/controller/Index.php @@ -320,7 +320,7 @@ class Index extends Cmsbase $where['tag'] = $tag; } //如果条件为空,则显示标签首页 - if (empty($where)) { + if (empty($tag)) { $data = Db::name('Tags')->order(['hits' => 'DESC'])->limit(100)->select(); $this->assign("SEO", seo('', '标签')); $this->assign('list', $data); -- Gitee