From c02d922dc61e21de4c7f08527912386fa2544c21 Mon Sep 17 00:00:00 2001 From: flashwave Date: Tue, 13 Feb 2024 21:22:56 +0000 Subject: [PATCH] Fixed Forum Activity section always showing up. --- templates/profile/index.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/profile/index.twig b/templates/profile/index.twig index abea8f5..b57fbea 100644 --- a/templates/profile/index.twig +++ b/templates/profile/index.twig @@ -79,7 +79,7 @@ {% set show_profile_fields = not profile_is_guest and (profile_is_editing ? perms.edit_profile : profile_fields_display_values|default([]) is not empty) %} {% set show_background_settings = profile_is_editing and perms.edit_background %} {% set show_birthdate = profile_is_editing and perms.edit_birthdate %} - {% set show_active_forum_info = not profile_is_guest and not profile_is_deleted and not profile_is_editing or (profile_active_category_info is defined and profile_active_category_info is not empty or profile_active_topic_info.topic_id|default(0) > 0) %} + {% set show_active_forum_info = not profile_is_guest and not profile_is_deleted and not profile_is_editing and profile_active_topic_info.id|default(0) > 0 %} {% set show_warnings = profile_warnings is defined and profile_warnings|length > 0 %} {% set show_sidebar = (not profile_is_banned or profile_can_edit) and (profile_is_guest or show_profile_fields or show_background_settings or show_birthdate or show_active_forum_info or show_warnings) %}