From de83b874ff3473ad23c5fbb8f86e8df4c7d2211e Mon Sep 17 00:00:00 2001 From: nonmakina Date: Mon, 11 Jan 2021 10:42:51 -0600 Subject: [PATCH] fixes --- inc/display.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/inc/display.php b/inc/display.php index 3860aa84..6de187a3 100644 --- a/inc/display.php +++ b/inc/display.php @@ -57,6 +57,7 @@ function doBoardListPart($list, $root, &$boards) { } function createForeignBoardListSection($configKey){ + global $config; $body = ''; if (isset($config[$configKey])){ @@ -69,7 +70,7 @@ function createForeignBoardListSection($configKey){ $body .= ' ' . $fboardname . ''; // only put slash in between elements - if ($i != count($configKey)) { + if ($i != count($config[$configKey])) { $body .= ' /'; } } @@ -77,7 +78,7 @@ function createForeignBoardListSection($configKey){ $body .= '] '; } - return body; + return $body; } function createBoardlist($mod=false) { @@ -92,8 +93,6 @@ function createBoardlist($mod=false) { } $body = ''; $body .= createForeignBoardListSection('prepended_foreign_boards'); - - $body .= doBoardListPart($config['boards'], $mod?'?/':$config['root'], $boards); $body .= createForeignBoardListSection('foreign_boards');