summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-03-17 23:45:14 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-03-17 23:45:14 +1100
commit08c3edecc1c29187e11f3a9214e49c571d0f74a8 (patch)
tree97a9ff726074d43fba904e57c5f4702a06bb7343
parent0156daaf553f382a32c6e36287dbbfea868fc52b (diff)
Add [ and ] in the boardlist when non existant
-rw-r--r--inc/display.php2
1 files changed, 2 insertions, 0 deletions
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' => '<div class="boardlist">' . $body . '</div>',