From 973d4a866d773ced38f10ef3925378d720dc11b8 Mon Sep 17 00:00:00 2001 From: ScarWu Date: Sun, 11 May 2014 23:36:01 +0800 Subject: [PATCH] add array check --- Parsedown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parsedown.php b/Parsedown.php index addffbe..1cf7fe6 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -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],