Fix warning when loading invalid html
This commit is contained in:
parent
a7e576fda0
commit
e9393fb509
|
@ -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']]);
|
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 {
|
} else {
|
||||||
$doc = new DOMDocument();
|
$doc = new DOMDocument();
|
||||||
$doc->loadHTML($content);
|
@$doc->loadHTML($content);
|
||||||
if (!$doc) {
|
if (!$doc) {
|
||||||
Logger::notice('Could not parse the content');
|
Logger::notice('Could not parse the content');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue