fixes back button rerender error

This commit is contained in:
buttle 2022-03-25 11:52:10 +01:00
parent f9d2d65931
commit 9d3976c1cb
1 changed files with 11 additions and 11 deletions

View File

@ -39,9 +39,9 @@ if ($wordpress_endpoint) {
} }
} }
} }
//print_r($items); //print_r($items);
if (!function_exists('render_menu')) {
function render_menu($items, $level_id) { function render_menu($items, $level_id) {
echo '<ul>' . PHP_EOL; echo '<ul>' . PHP_EOL;
foreach ($items[$level_id] as $menu_item) { foreach ($items[$level_id] as $menu_item) {
@ -54,7 +54,7 @@ function render_menu($items, $level_id) {
} }
echo '</ul>' . PHP_EOL; echo '</ul>' . PHP_EOL;
} }
}
if (count($items[0]) > 0) { if (count($items[0]) > 0) {
render_menu($items, 0); render_menu($items, 0);
} }