Code Quality

This commit is contained in:
cgfhtw
2023-07-27 11:42:03 +02:00
parent ace3bd6736
commit 7dee77a6af
18 changed files with 113 additions and 79 deletions
@@ -1,10 +1,10 @@
<?php
if (!isset($menu)) {
$menu = [];
if (property_exists($this->router, 'menu') && $this->router->menu && property_exists($this->router->menu, 'children')) {
$menu = $this->router->menu->children;
}
if (!isset($menu)) {
$menu = [];
if (property_exists($this->router, 'menu') && $this->router->menu && property_exists($this->router->menu, 'children')) {
$menu = $this->router->menu->children;
}
}
?>
<script type="text/javascript">
@@ -42,9 +42,9 @@
<div id="nav-main-menu" class="collapse collapse-horizontal show">
<div>
<?php
foreach ($menu as $entry) {
$this->load->view('templates/CISHMVC-Menu/Entry', ['entry' => $entry, 'menu_id' => 'menu']);
}
foreach ($menu as $entry) {
$this->load->view('templates/CISHMVC-Menu/Entry', ['entry' => $entry, 'menu_id' => 'menu']);
}
?>
</div>
</div>