diff options
Diffstat (limited to 'src/view/NavBuilder.php')
| -rw-r--r-- | src/view/NavBuilder.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/NavBuilder.php b/src/view/NavBuilder.php index 03b4c97..6caefbc 100644 --- a/src/view/NavBuilder.php +++ b/src/view/NavBuilder.php | |||
| @@ -13,7 +13,7 @@ class NavBuilder extends AbstractBuilder | |||
| 13 | public function __construct(Node $node = null) | 13 | public function __construct(Node $node = null) |
| 14 | { | 14 | { |
| 15 | $this->html .= '<nav class="nav_main"><ul>'; | 15 | $this->html .= '<nav class="nav_main"><ul>'; |
| 16 | if(count(Model::$menu->getChildren()) > 1){ | 16 | if(count(Model::$menu->getChildren()) > 1 || !Model::$menu->getChildren()[0]->getChildren()->isEmpty()){ |
| 17 | $this->html .= $this->navMainHTML( | 17 | $this->html .= $this->navMainHTML( |
| 18 | Model::$menu, // Menu étend Page | 18 | Model::$menu, // Menu étend Page |
| 19 | Model::$page_path != null ? Model::$page_path->getArray() : []); // param nullable, ça retire une dépendance stricte entre NavBuilder et Model | 19 | Model::$page_path != null ? Model::$page_path->getArray() : []); // param nullable, ça retire une dépendance stricte entre NavBuilder et Model |
