Skip to content

Commit

Permalink
Fix issue Menu Assignment selected #633
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Apr 10, 2024
1 parent abf8a19 commit 9daf3c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/library/astroid/Element/BaseElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected function wrap()
$assignment = $this->params->get('assignment', "");
if ($assignment_type == 2 && $assignment) {
$assignment = \json_decode($assignment, true);
if (isset($assignment[$menuId]) && !$assignment[$menuId]) {
if ((isset($assignment[$menuId]) && !$assignment[$menuId]) || !isset($assignment[$menuId])) {
return '';
}
}
Expand Down

1 comment on commit 9daf3c4

@Oxaluz
Copy link

@Oxaluz Oxaluz commented on 9daf3c4 Apr 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix works fine for me

Please sign in to comment.