mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 17:54:55 +02:00
Make $sections global
This commit is contained in:
@@ -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'],
|
||||
|
Reference in New Issue
Block a user