diff --git a/src/Views/layout-normal.phtml b/src/Views/layout-normal.phtml index 463bf30a..5bab8d1c 100644 --- a/src/Views/layout-normal.phtml +++ b/src/Views/layout-normal.phtml @@ -45,14 +45,17 @@ $postNav []= ['Log out', \Chibi\UrlHelper::route('auth', 'logout')]; } - function printNav($nav) + if (!function_exists('printNav')) { - foreach ($nav as $navItem) + function printNav($nav) { - list ($text, $link) = $navItem; - echo '