Skip to content

Commit

Permalink
Key wurde nicht gefunden
Browse files Browse the repository at this point in the history
  • Loading branch information
hhunderter committed Jan 10, 2023
1 parent abcedb1 commit e0bd291
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions application/modules/admin/plugins/AfterDatabaseLoad.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public function __construct(array $pluginData)
$request->setParam('locale', $permas[$urlParts[0]]['locale']);
}
unset($urlParts[0]);
if ($urlParts[1] === 'locale') {
unset($urlParts[1]);
if (isset($urlParts[0]) && $urlParts[0] === 'locale') {
unset($urlParts[0]);
}

$result = $router->convertParamStringIntoArray(implode('/', $urlParts));
Expand Down
4 changes: 2 additions & 2 deletions application/modules/article/plugins/AfterDatabaseLoad.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public function __construct(array $pluginData)
$request->setParam('locale', $permas[$urlParts[0]]['locale']);
}
unset($urlParts[0]);
if ($urlParts[1] === 'locale') {
unset($urlParts[1]);
if (isset($urlParts[0]) && $urlParts[0] === 'locale') {
unset($urlParts[0]);
}

$result = $router->convertParamStringIntoArray(implode('/', $urlParts));
Expand Down

0 comments on commit e0bd291

Please sign in to comment.