diff --git a/src/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuSystem.php b/src/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuSystem.php index 5196881a3..079c60362 100644 --- a/src/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuSystem.php +++ b/src/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuSystem.php @@ -122,17 +122,17 @@ class MenuSystem */ public function getBreadcrumbs() { - $nodes = $this->root->getChildren(); + $nodes = $this->root->getChildren(); $breadcrumbs = array(); - while ($nodes != null) { + while ($nodes != null) { $next = null; foreach ($nodes as $node) { if ($node->Selected) { - $breadcrumbs[] = array('name' => $node->VisibleName); - /* only go as far as the first reachable URL */ - $next = empty($node->Url) ? $node->Children : null; - break; + $breadcrumbs[] = array('name' => $node->VisibleName); + /* only go as far as the first reachable URL */ + $next = empty($node->Url) ? $node->Children : null; + break; } } $nodes = $next;