From ca23822e408338c261abc99150fed95a7c2c80b9 Mon Sep 17 00:00:00 2001 From: flashwave Date: Mon, 28 Aug 2023 14:45:32 +0000 Subject: [PATCH] Fixed errors on profiles. --- templates/profile/index.twig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/profile/index.twig b/templates/profile/index.twig index 69e9156..d55e3cc 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_deleted and not profile_is_editing 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 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_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) %} @@ -142,7 +142,7 @@ {{ container_title('Forum Activity') }}
- {% if profile_active_category_info is not empty %} + {% if profile_active_category_info is defined and profile_active_category_info is not empty %}
Most active category @@ -170,7 +170,7 @@
{% endif %} - {% if profile_active_topic_info is not empty %} + {% if profile_active_topic_info is defined and profile_active_topic_info is not empty %}
Most active topic