Commit 80b79b26fdaa60aa95417ba050c905f3c0cb9433

Authored by Alex Savenko
1 parent 9f58e702

sitemap controller not like noindex

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
console/controllers/SiteMapController.php
@@ -46,7 +46,7 @@ class SiteMapController extends Controller @@ -46,7 +46,7 @@ class SiteMapController extends Controller
46 46
47 public function getCategories() { 47 public function getCategories() {
48 48
49 - return Category::find()->andWhere(['not like', 'meta_robots', 'noindex'])->all(); 49 + return Category::find()->andWhere(['not like', 'meta_robots', ''])->all();
50 50
51 } 51 }
52 52
@@ -70,7 +70,7 @@ class SiteMapController extends Controller @@ -70,7 +70,7 @@ class SiteMapController extends Controller
70 70
71 public function getSeoLinks() { 71 public function getSeoLinks() {
72 72
73 - return Seo::find()->where(['not like', 'meta_robots', 'noindex'])->all(); 73 + return Seo::find()->where(['not like', 'meta', ''])->all();
74 74
75 } 75 }
76 76