From 8857c30c7b563873ff0ab2a611c9ba2d57920ced Mon Sep 17 00:00:00 2001 From: slawkens Date: Sun, 16 Mar 2025 09:41:02 +0100 Subject: [PATCH] Make $sections global --- system/pages/forum/base.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/pages/forum/base.php b/system/pages/forum/base.php index 2463fa05..4d562205 100644 --- a/system/pages/forum/base.php +++ b/system/pages/forum/base.php @@ -29,7 +29,8 @@ if(strtolower($forumSetting) != 'site') { $canEdit = Forum::isModerator(); -$sections = array(); +global $sections; +$sections = []; foreach(getForumBoards() as $section) { $sections[$section['id']] = array( 'id' => $section['id'],