From d639e77d043331ba899b89ebe4949b17f4db390e Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 17 Jan 2025 16:24:30 +0100 Subject: [PATCH] tibiacom: Fix the closing MenuBottom if there are extra categories --- templates/tibiacom/index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/tibiacom/index.php b/templates/tibiacom/index.php index 4cefbd373..852ac47ec 100644 --- a/templates/tibiacom/index.php +++ b/templates/tibiacom/index.php @@ -326,7 +326,11 @@ function MouseOutSubmenuItem(source) $cat) { + $i++; + if(!isset($menus[$id]) || ($id == MENU_CATEGORY_SHOP && !setting('core.gifts_system'))) { continue; } @@ -369,7 +373,7 @@ function MouseOutSubmenuItem(source) ?>