瀏覽代碼

Silence PHP notices in upstream Parsedown

Parsedown is a still unresolved issue in whole, this at least ensures that we don't fill up logfiles with useless errors...
Daniel Rudolf 4 年之前
父節點
當前提交
1916dc5645
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/Pico.php

+ 1 - 1
lib/Pico.php

@@ -1673,7 +1673,7 @@ class Pico
     public function parseFileContent($markdown, $singleLine = false)
     {
         $markdownParser = $this->getParsedown();
-        return !$singleLine ? $markdownParser->text($markdown) : $markdownParser->line($markdown);
+        return !$singleLine ? @$markdownParser->text($markdown) : @$markdownParser->line($markdown);
     }
 
     /**