From 5e364f595b8ae24a1bf0da53f334c442645cf25c Mon Sep 17 00:00:00 2001 From: Koreus Date: Tue, 4 Feb 2025 11:06:21 +0000 Subject: [PATCH 1/4] Removed Warning: Undefined array key "subforum" --- htdocs/themes/xbootstrap5/modules/newbb/newbb_index.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/themes/xbootstrap5/modules/newbb/newbb_index.tpl b/htdocs/themes/xbootstrap5/modules/newbb/newbb_index.tpl index bf8576131..864bbd63a 100644 --- a/htdocs/themes/xbootstrap5/modules/newbb/newbb_index.tpl +++ b/htdocs/themes/xbootstrap5/modules/newbb/newbb_index.tpl @@ -140,7 +140,7 @@ <{foreach item=forum from=$category.forums|default:null}>
- <{if $forum.subforum}> + <{if $forum.subforum|default:false}>
<{$forum.forum_folder}>
@@ -221,7 +221,7 @@ <{$smarty.const._MD_NEWBB_NOTOPIC}> <{/if}> - <{if $forum.subforum}> + <{if $forum.subforum|default:false}> <{$smarty.const._MD_NEWBB_SUBFORUMS}><{$img_subforum}> <{foreach item=subforum from=$forum.subforum|default:null}> [ From 1a96b0e4d5f33819cf8c2a553333d886dfaaf4a2 Mon Sep 17 00:00:00 2001 From: Koreus Date: Tue, 4 Feb 2025 11:38:48 +0000 Subject: [PATCH 2/4] Fix subforum not expanding --- htdocs/themes/xbootstrap5/modules/newbb/newbb_index.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/themes/xbootstrap5/modules/newbb/newbb_index.tpl b/htdocs/themes/xbootstrap5/modules/newbb/newbb_index.tpl index 864bbd63a..3b2b6027a 100644 --- a/htdocs/themes/xbootstrap5/modules/newbb/newbb_index.tpl +++ b/htdocs/themes/xbootstrap5/modules/newbb/newbb_index.tpl @@ -123,7 +123,7 @@ <{/if}>
-
+
<{if $category.forums}>