diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 3eb606483..23eaf299c 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -1754,10 +1754,11 @@ class Probe */ public static function getFeedLink(string $url, string $body) { - $doc = new DOMDocument(); if (empty($body)) { return ''; } + + $doc = new DOMDocument(); if (!@$doc->loadHTML($body)) { return false; }