Commit e0c6eb0a9dbc8af5ecc013d178ad369bceba36df

Authored by mzavalniuk
1 parent f41b2241

fix SeoUrlManager createUrl

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
artweb/artbox-core/components/SeoUrlManager.php
@@ -105,8 +105,8 @@ @@ -105,8 +105,8 @@
105 * Decide how much active languages (1) 105 * Decide how much active languages (1)
106 */ 106 */
107 $count = count(Language::getActive()); 107 $count = count(Language::getActive());
108 -  
109 - if ($params[ 0 ] === 'site/index') { 108 +
  109 + if (!empty($params[ 0 ]) && $params[ 0 ] === 'site/index') {
110 if ($count > 1) { 110 if ($count > 1) {
111 return '/'; 111 return '/';
112 } else { 112 } else {