From 08c3edecc1c29187e11f3a9214e49c571d0f74a8 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Thu, 17 Mar 2011 23:45:14 +1100 Subject: [PATCH] Add [ and ] in the boardlist when non existant --- inc/display.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/display.php b/inc/display.php index cc890ee6..7f10a597 100644 --- a/inc/display.php +++ b/inc/display.php @@ -41,6 +41,8 @@ if(!isset($config['boards'])) return Array('top'=>'','bottom'=>''); $body = doBoardListPart($config['boards'], $mod?'?/':$config['root']); + if(!preg_match('/\]$/', $body)) + $body = '[' . $body . ']'; return Array( 'top' => '
' . $body . '
',