diff --git a/src/Network/Probe.php b/src/Network/Probe.php index f4ca0398a8..3eb6064833 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -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; }