diff --git a/console/SiteMapController.php b/console/SiteMapController.php index a40b427..9ab027a 100755 --- a/console/SiteMapController.php +++ b/console/SiteMapController.php @@ -65,6 +65,7 @@ { return Category::find() ->with('lang') + ->where(['!=', 'parent_id', 0 ]) ->all(); } @@ -74,8 +75,10 @@ ->with('lang') ->joinWith('taxGroups.lang') ->with('taxGroups.taxOptions.lang') - ->where(['!=', 'tax_group.meta_robots', 'noindex,nofollow' ]) - ->where(['tax_group.is_filter'=>true ]) + ->where(['!=', 'parent_id', 0 ]) + ->andWhere(['!=', 'tax_group.meta_robots', 'noindex,nofollow' ]) + ->andWhere(['!=', 'tax_group.meta_robots', 'noindex, nofollow' ]) + ->andWhere(['tax_group.is_filter'=>true ]) ->all(); } -- libgit2 0.21.4