diff --git a/console/SiteMapController.php b/console/SiteMapController.php index 8bb1eed..63ecc5e 100755 --- a/console/SiteMapController.php +++ b/console/SiteMapController.php @@ -43,7 +43,7 @@ public function getSeoLinks() { return Seo::find() - ->where([ 'meta' => '' ]) + ->where(['!=', 'meta', 'noindex,nofollow' ]) ->all(); } @@ -68,7 +68,7 @@ ->with('lang') ->joinWith('taxGroups.lang') ->with('taxGroups.taxOptions.lang') - ->where([ 'tax_group.meta_robots' => '', ]) + ->where(['!=', 'tax_group.meta_robots', 'noindex,nofollow' ]) ->all(); } -- libgit2 0.21.4