mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-29 10:49:22 +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();
|
$canEdit = Forum::isModerator();
|
||||||
|
|
||||||
$sections = array();
|
global $sections;
|
||||||
|
$sections = [];
|
||||||
foreach(getForumBoards() as $section) {
|
foreach(getForumBoards() as $section) {
|
||||||
$sections[$section['id']] = array(
|
$sections[$section['id']] = array(
|
||||||
'id' => $section['id'],
|
'id' => $section['id'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user