diff --git a/build/commands/markdown/MarkdownParser.php b/build/commands/markdown/MarkdownParser.php
index 9d7796f188..0e702dcb0b 100644
--- a/build/commands/markdown/MarkdownParser.php
+++ b/build/commands/markdown/MarkdownParser.php
@@ -17,7 +17,7 @@ public function _doHeaders_callback_setext($matches)
{
if ($matches[3] == '-' && preg_match('{^- }', $matches[1]))
return $matches[0];
- $level = $matches[3]{0} == '=' ? 1 : 2;
+ $level = $matches[3][0] == '=' ? 1 : 2;
$text = $this->runSpanGamut($matches[1]);
$attr = $this->doHeaderId($text);
$block = "".$text."";
diff --git a/docs/viewer/components/MarkdownParser.php b/docs/viewer/components/MarkdownParser.php
index 719814f4b6..8e67b51e59 100644
--- a/docs/viewer/components/MarkdownParser.php
+++ b/docs/viewer/components/MarkdownParser.php
@@ -24,7 +24,7 @@ public function _doHeaders_callback_setext($matches)
{
if ($matches[3] == '-' && preg_match('{^- }', $matches[1]))
return $matches[0];
- $level = $matches[3]{0} == '=' ? 1 : 2;
+ $level = $matches[3][0] == '=' ? 1 : 2;
$text = $this->runSpanGamut($matches[1]);
$attr = $this->doHeaderId($text);
$block = "".$text."";