From ea06613d446b18057212fc99638201afa22b61fd Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Thu, 17 Mar 2011 23:53:27 +1100 Subject: [PATCH] Fix [ and ] brackets and whitespace trimming --- inc/display.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/display.php b/inc/display.php index 086171c4..c6570002 100644 --- a/inc/display.php +++ b/inc/display.php @@ -45,9 +45,11 @@ if(!isset($config['boards'])) return Array('top'=>'','bottom'=>''); $body = doBoardListPart($config['boards'], $mod?'?/':$config['root']); - if(!preg_match('/\]$/', $body)) + if(!preg_match('/\] $/', $body)) $body = '[' . $body . ']'; + $body = trim($body); + return Array( 'top' => '
' . $body . '
', 'bottom' => '
' . $body . '
'