From e0c6eb0a9dbc8af5ecc013d178ad369bceba36df Mon Sep 17 00:00:00 2001 From: diver90 Date: Thu, 3 Jun 2021 11:36:40 +0300 Subject: [PATCH] fix SeoUrlManager createUrl --- artweb/artbox-core/components/SeoUrlManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artweb/artbox-core/components/SeoUrlManager.php b/artweb/artbox-core/components/SeoUrlManager.php index 36acd2d..b736fec 100755 --- a/artweb/artbox-core/components/SeoUrlManager.php +++ b/artweb/artbox-core/components/SeoUrlManager.php @@ -105,8 +105,8 @@ * Decide how much active languages (1) */ $count = count(Language::getActive()); - - if ($params[ 0 ] === 'site/index') { + + if (!empty($params[ 0 ]) && $params[ 0 ] === 'site/index') { if ($count > 1) { return '/'; } else { -- libgit2 0.21.4