diff --git a/include/html2bbcode.php b/include/html2bbcode.php
index 0236c8374a..2ae0df8f68 100644
--- a/include/html2bbcode.php
+++ b/include/html2bbcode.php
@@ -35,7 +35,7 @@ $bbtags = array(
'\n',
'[b]$1[/b]',
'[url=$1]$3[/url]',
- '[code]$1[/code],
+ '[code]$1[/code]',
'[color="$1"]$2[/color]',
'[color="$1"]$2[/color]',
'[quote]$1[/quote]',