does not render empty menu

This commit is contained in:
buttle 2022-03-25 11:17:14 +01:00
parent f79b7af69c
commit 27ed8e6db5
1 changed files with 3 additions and 1 deletions

View File

@ -54,6 +54,8 @@ function render_menu($items, $level_id) {
echo '</ul>' . PHP_EOL;
}
render_menu($items, 0);
if (count($items[0]) > 0) {
render_menu($items, 0);
}
?>