From 77b24a0b66518b6dc0f129a47f9fd6022742c108 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 23 Feb 2021 16:06:34 -0500 Subject: [PATCH] Quit earlier in ProbeURL->getFeedLink if body is empty --- src/Network/Probe.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }