Skip to content

Commit

Permalink
Fix issue call language property when $menuItem is null
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Dec 8, 2022
1 parent 04479b7 commit f22141d
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 @@ -56,7 +56,7 @@

$itemId = $app->input->get('id');
$menuItem = $menu->getItem($itemId);
if ($menuItem->language === null || (isset($menuItem->language) && $menuItem->language == '*')) {
if ($menuItem === null || (isset($menuItem->language) && $menuItem->language == '*')) {
$items = $menu->getItems(['menutype'], $menu_type);
} else {
$items = $menu->getItems(['menutype', 'language'], [$menu_type, $menuItem->language]);
Expand Down

0 comments on commit f22141d

Please sign in to comment.