fix

parent 75124294
...@@ -15,8 +15,9 @@ use common\models\Settings; ...@@ -15,8 +15,9 @@ use common\models\Settings;
<div class="sidebar_module_body"> <div class="sidebar_module_body">
<?php $tags = PostTag::find() <?php $tags = PostTag::find()
->innerJoinWith('assigns') ->innerJoinWith('posts')
->groupBy(['posts_tags_assign.tag_id']) ->groupBy(['posts_tags_assign.tag_id'])
->where(['posts.active' => 1])
->orderBy('RAND()') ->orderBy('RAND()')
->limit(7) ->limit(7)
->all(); ->all();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment