Skip to content

Commit

Permalink
[2.5.18] Fix language missing in multi-language menu
Browse files Browse the repository at this point in the history
Fix Warning: Undefined array key 1 in ./libraries/src/Menu/SiteMenu.php on line 245
  • Loading branch information
sonvnn committed Aug 18, 2022
1 parent c632af4 commit 79b6243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/layouts/fields/astroidmenuoptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
if (isset($menuItem->language) && $menuItem->language == '*') {
$items = $menu->getItems(['menutype'], $menu_type);
} else {
$items = $menu->getItems(['menutype', 'language'], $menu_type);
$items = $menu->getItems(['menutype', 'language'], [$menu_type, $menuItem->language]);
}

$children = [];
Expand Down

0 comments on commit 79b6243

Please sign in to comment.