diff --git a/frontend/widgets/BlogSidebar.php b/frontend/widgets/BlogSidebar.php index 8577827..c0ee77f 100755 --- a/frontend/widgets/BlogSidebar.php +++ b/frontend/widgets/BlogSidebar.php @@ -27,7 +27,7 @@ $this->categories = Category::find() ->with('lang.alias') - ->innerJoinWith('articles') + ->where(['status' => true]) ->all(); $this->tags = Tag::find() -- libgit2 0.21.4