From c8e0676fcb41ee8245ef2c8cf20e561706507182 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 27 Oct 2017 15:43:31 +0300 Subject: [PATCH] -Category status --- frontend/widgets/BlogSidebar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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