diff --git a/application/views/includes/barber-header.php b/application/views/includes/barber-header.php index a8d72d4..de26f0c 100755 --- a/application/views/includes/barber-header.php +++ b/application/views/includes/barber-header.php @@ -6,6 +6,7 @@ if(in_array($selectedLang, $langArray)){ $currentPageUrl = $_SERVER['REQUEST_URI']; $currentPageUrlArray = explode('/',$currentPageUrl); + $currentPageUrlArray += array(2 => '', 3 => ''); $currentPageUrlArray[1] = $selectedLang; switch($selectedLang){ diff --git a/application/views/includes/beauty-header.php b/application/views/includes/beauty-header.php index 977aaa5..a4f89d9 100755 --- a/application/views/includes/beauty-header.php +++ b/application/views/includes/beauty-header.php @@ -8,6 +8,7 @@ if(in_array($selectedLang, $langArray)){ $currentPageUrl = $_SERVER['REQUEST_URI']; $currentPageUrlArray = explode('/',$currentPageUrl); + $currentPageUrlArray += array(2 => '', 3 => ''); $currentPageUrlArray[1] = $selectedLang; switch($selectedLang){