Skip to content

Commit

Permalink
Fixing notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar authored Feb 10, 2019
1 parent 292f1e1 commit cf51ece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/src/Router/SiteRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public function parseSefRoute(&$router, &$uri)
}

// Menu links are not valid URLs. Find the first parent that isn't a menulink
if ($found->type == 'menulink')
if ($found && $found->type == 'menulink')
{
while ($found->hasParent() && $found->type == 'menulink')
{
Expand Down

0 comments on commit cf51ece

Please sign in to comment.