Explorar o código

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 %!s(int64=4) %!d(string=hai) anos
pai
achega
1916dc5645
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
     }
 
     /**