diff --git a/application/cms/controller/Index.php b/application/cms/controller/Index.php index 8673ffd0a19d414ab3687441abf42dcc0eb3c401..68410173559a23ec800219c819998c6246bfbbec 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);