mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 01:09:21 +02:00
Make $sections global
This commit is contained in:
parent
31d2a3bde8
commit
8857c30c7b
@ -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'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user