Browse Source

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 years ago
parent
commit
1916dc5645
1 changed files with 1 additions and 1 deletions
  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);
     }
 
     /**