Fixed double inclusion bug
This commit is contained in:
parent
4aa41653be
commit
c69ff872a9
1 changed files with 9 additions and 6 deletions
|
@ -45,6 +45,8 @@
|
|||
$postNav []= ['Log out', \Chibi\UrlHelper::route('auth', 'logout')];
|
||||
}
|
||||
|
||||
if (!function_exists('printNav'))
|
||||
{
|
||||
function printNav($nav)
|
||||
{
|
||||
foreach ($nav as $navItem)
|
||||
|
@ -55,6 +57,7 @@
|
|||
echo '</li>';
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<?php printNav($preNav); ?>
|
||||
|
|
Loading…
Reference in a new issue