Quit when message is empty, similar to #9681

This commit is contained in:
Adam Clark 2021-02-23 10:16:59 -08:00
parent 2daa783f15
commit 8248f6942f
1 changed files with 3 additions and 0 deletions

View File

@ -1755,6 +1755,9 @@ class Probe
public static function getFeedLink(string $url, string $body)
{
$doc = new DOMDocument();
if (empty($body)) {
return '';
}
if (!@$doc->loadHTML($body)) {
return false;
}