Skip to content

Commit

Permalink
Fixing unittest for nomenu rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar committed Sep 24, 2016
1 parent 7dbdf38 commit 37289db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/cms/component/router/rules/nomenu.php
Expand Up @@ -96,7 +96,7 @@ public function build(&$query, &$segments)
{
$item = $this->router->menu->getItem($query['Itemid']);

if (!isset($query['option']) || $item->query['option'] == $query['option'])
if (!isset($query['option']) || ($item && $item->query['option'] == $query['option']))
{
$menu_found = true;
}
Expand Down

0 comments on commit 37289db

Please sign in to comment.