Skip to content

Commit

Permalink
Silence PHP notices in upstream Parsedown
Browse files Browse the repository at this point in the history
Parsedown is a still unresolved issue in whole, this at least ensures that we don't fill up logfiles with useless errors...
  • Loading branch information
PhrozenByte committed Aug 29, 2020
1 parent 4be1f6a commit 1916dc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Pico.php
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,7 @@ public function substituteFileContent($markdown, array $meta = array())
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);
}

/**
Expand Down

0 comments on commit 1916dc5

Please sign in to comment.