From: Michael Date: Wed, 9 Nov 2022 06:38:31 +0000 (+0000) Subject: Fix warning when loading invalid html X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e9393fb509cd113d1bb52c4ab404ff73ea962793;p=friendica.git Fix warning when loading invalid html --- diff --git a/src/Worker/CheckRelMeProfileLink.php b/src/Worker/CheckRelMeProfileLink.php index e5727cc83d..987619e19a 100644 --- a/src/Worker/CheckRelMeProfileLink.php +++ b/src/Worker/CheckRelMeProfileLink.php @@ -67,7 +67,7 @@ class CheckRelMeProfileLink Logger::notice('Empty body of the fetched homepage link). Cannot verify the relation to profile of UID %s.', ['uid' => $uid, 'owner homepage' => $owner['homepage']]); } else { $doc = new DOMDocument(); - $doc->loadHTML($content); + @$doc->loadHTML($content); if (!$doc) { Logger::notice('Could not parse the content'); } else {