Skip to content

Commit 95d8d44

Browse files
Hackwarrichard67
andauthored
[3] Routing: Fix notice in NoMenuRule (#34049)
* Checking if option in query is set Co-authored-by: Richard Fath <[email protected]>
1 parent 0a9c2cb commit 95d8d44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/src/Component/Router/Rules/NomenuRules.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ public function build(&$query, &$segments)
101101
{
102102
$item = $this->router->menu->getItem($query['Itemid']);
103103

104-
if (!isset($query['option']) || ($item && $item->query['option'] === $query['option']))
104+
if (!isset($query['option'])
105+
|| ($item && isset($item->query['option']) && $item->query['option'] === $query['option']))
105106
{
106107
$menu_found = true;
107108
}

0 commit comments

Comments
 (0)