]> git.mxchange.org Git - friendica.git/commitdiff
Fix warning when loading invalid html
authorMichael <heluecht@pirati.ca>
Wed, 9 Nov 2022 06:38:31 +0000 (06:38 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 9 Nov 2022 06:38:31 +0000 (06:38 +0000)
src/Worker/CheckRelMeProfileLink.php

index e5727cc83d6d80b8b601a123433487ae0a09f9ea..987619e19a4b1fc528fc43f74fc0757e2697963a 100644 (file)
@@ -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 {