From: Hypolite Petovan Date: Tue, 23 Feb 2021 21:06:34 +0000 (-0500) Subject: Quit earlier in ProbeURL->getFeedLink if body is empty X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=77b24a0b66518b6dc0f129a47f9fd6022742c108;p=friendica.git Quit earlier in ProbeURL->getFeedLink if body is empty --- diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 3eb6064833..23eaf299ca 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; }