We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f0b0bf commit cb0c4c8Copy full SHA for cb0c4c8
administrator/modules/mod_submenu/src/Menu/Menu.php
@@ -100,7 +100,9 @@ public static function preprocess($parent)
100
101
// Exclude item with menu item option set to exclude from menu modules
102
if ($itemParams->get('menu-permission')) {
103
- @list($action, $asset) = explode(';', $itemParams->get('menu-permission'));
+ $parts = explode(';', $itemParams->get('menu-permission'));
104
+ $action = $parts[0];
105
+ $asset = $parts[1] ?? null;
106
107
if (!$user->authorise($action, $asset)) {
108
$parent->removeChild($item);
0 commit comments