Commit bce880f4ecae9867b77c75db2b6b3f588984da8f
1 parent
d482cb6f
29.06.16
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
frontend/widgets/Seo.php
@@ -106,7 +106,7 @@ class Seo extends Widget | @@ -106,7 +106,7 @@ class Seo extends Widget | ||
106 | $model = TaxOption::find()->where(['alias' => $filter['options']["naznacenie"]])->one(); | 106 | $model = TaxOption::find()->where(['alias' => $filter['options']["naznacenie"]])->one(); |
107 | if($this->selectSeoData(self::H1) == $this->category_name) { | 107 | if($this->selectSeoData(self::H1) == $this->category_name) { |
108 | 108 | ||
109 | - return $this->selectSeoData(self::H1) . ' ' . $model->name; | 109 | + return $this->selectSeoData(self::H1) . ' ' . isset($model->name) ?$model->name : ''; |
110 | 110 | ||
111 | }else { | 111 | }else { |
112 | 112 |