Add [ and ] in the boardlist when non existant

This commit is contained in:
Savetheinternet 2011-03-17 23:45:14 +11:00
parent 0156daaf55
commit 08c3edecc1

View File

@ -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' => '<div class="boardlist">' . $body . '</div>',