Avoid PHP error in Markdown parser
parent::inlineLink() could returns null or an array.
Bug introduced in commit c44880a.
This commit is contained in:
parent
1e67121616
commit
1268c0023d
|
|
@ -155,7 +155,9 @@ class Markdown extends Parsedown
|
|||
protected function inlineLink($Excerpt)
|
||||
{
|
||||
$Inline = parent::inlineLink($Excerpt);
|
||||
array_push($Inline['element']['nonNestables'], 'TaskLink', 'UserLink');
|
||||
if (is_array($Inline)) {
|
||||
array_push($Inline['element']['nonNestables'], 'TaskLink', 'UserLink');
|
||||
}
|
||||
return $Inline;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue