Fixed double inclusion bug

This commit is contained in:
Marcin Kurczewski 2013-10-07 20:31:45 +02:00
parent 4aa41653be
commit c69ff872a9

View file

@ -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); ?>