Quit when message is empty, similar to #9681
This commit is contained in:
parent
2daa783f15
commit
8248f6942f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue