summaryrefslogtreecommitdiff
path: root/app/Core/Markdown.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/Markdown.php')
-rw-r--r--app/Core/Markdown.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Core/Markdown.php b/app/Core/Markdown.php
index ae6adb5e..07e427d1 100644
--- a/app/Core/Markdown.php
+++ b/app/Core/Markdown.php
@@ -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;
}
}