1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

add array check

This commit is contained in:
ScarWu 2014-05-11 23:36:01 +08:00
parent d19c2b6942
commit 973d4a866d

View File

@ -1041,7 +1041,7 @@ class Parsedown
protected function identifyEscapeSequence($excerpt)
{
if (in_array($excerpt[1], $this->specialCharacters))
if (isset($excerpt[1]) && in_array($excerpt[1], $this->specialCharacters))
{
return array(
'markup' => $excerpt[1],