Commit 25a232f54d3147db0703eb750e87d8f24b215df9
1 parent
d8c91cea
seo close lonks
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
frontend/components/SeoComponent.php
| @@ -25,10 +25,10 @@ | @@ -25,10 +25,10 @@ | ||
| 25 | 25 | ||
| 26 | public function getRobots() | 26 | public function getRobots() |
| 27 | { | 27 | { |
| 28 | - if (array_search(\Yii::$app->controller->id, $this->close)){ | 28 | + if (array_search(\Yii::$app->controller->id, $this->close) !== false){ |
| 29 | return 'noindex, nofollow'; | 29 | return 'noindex, nofollow'; |
| 30 | } | 30 | } |
| 31 | - if (array_search(\Yii::$app->request->pathInfo, $this->close)){ | 31 | + if (array_search(\Yii::$app->request->pathInfo, $this->close) !== false){ |
| 32 | return 'noindex, nofollow'; | 32 | return 'noindex, nofollow'; |
| 33 | } | 33 | } |
| 34 | 34 |