Commit 668a03b4089efc0f5a6464474ca188f623bc0191
1 parent
951935eb
All seo
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
frontend/widgets/Seo.php
@@ -114,8 +114,10 @@ class Seo extends Widget | @@ -114,8 +114,10 @@ class Seo extends Widget | ||
114 | // if(!empty($filter_row)){ | 114 | // if(!empty($filter_row)){ |
115 | // return $filter_row; | 115 | // return $filter_row; |
116 | // } | 116 | // } |
117 | - | ||
118 | - if(!empty($filter)) { | 117 | + if (!empty($title)) { |
118 | + return $title; | ||
119 | + } | ||
120 | + else if(!empty($filter)) { | ||
119 | 121 | ||
120 | $array = [ | 122 | $array = [ |
121 | 'category' => $this->category_name | 123 | 'category' => $this->category_name |
@@ -151,9 +153,7 @@ class Seo extends Widget | @@ -151,9 +153,7 @@ class Seo extends Widget | ||
151 | } | 153 | } |
152 | return $this->getTitleString($array); | 154 | return $this->getTitleString($array); |
153 | 155 | ||
154 | - } else if (!empty($title)) { | ||
155 | - return $title; | ||
156 | - } else { | 156 | + } else { |
157 | return $this->project_name; | 157 | return $this->project_name; |
158 | } | 158 | } |
159 | 159 |