From 25a232f54d3147db0703eb750e87d8f24b215df9 Mon Sep 17 00:00:00 2001 From: Anastasia Date: Thu, 2 Aug 2018 14:22:47 +0300 Subject: [PATCH] seo close lonks --- frontend/components/SeoComponent.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/components/SeoComponent.php b/frontend/components/SeoComponent.php index d4ddfd5..a792682 100644 --- a/frontend/components/SeoComponent.php +++ b/frontend/components/SeoComponent.php @@ -25,10 +25,10 @@ public function getRobots() { - if (array_search(\Yii::$app->controller->id, $this->close)){ + if (array_search(\Yii::$app->controller->id, $this->close) !== false){ return 'noindex, nofollow'; } - if (array_search(\Yii::$app->request->pathInfo, $this->close)){ + if (array_search(\Yii::$app->request->pathInfo, $this->close) !== false){ return 'noindex, nofollow'; } -- libgit2 0.21.4