Skip to content

Commit

Permalink
Fix issue get property language from non-object
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Mar 21, 2022
1 parent bf30dd0 commit dceb07f
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 == '*') {
if (isset($menuItem->language) && $menuItem->language == '*') {
$items = $menu->getItems(['menutype'], $menu_type);
} else {
$items = $menu->getItems(['menutype', 'language'], $menu_type);
Expand Down

0 comments on commit dceb07f

Please sign in to comment.