Logger::notice('Verifying the homepage', ['uid' => $uid]);
Profile::update(['homepage_verified' => false], $uid);
$homepageUrlVerified = false;
- $owner = User::getOwnerDataById($uid);
+ $owner = User::getOwnerDataById($uid);
if (!empty($owner['homepage'])) {
- $xrd_timeout = DI::config()->get('system', 'xrd_timeout' ?? 20);
- $curlResult = DI::httpClient()->get($owner['homepage'], $accept_content = HttpClientAccept::HTML, [HttpClientOptions::TIMEOUT => $xrd_timeout]);
+ $xrd_timeout = DI::config()->get('system', 'xrd_timeout');
+ $curlResult = DI::httpClient()->get($owner['homepage'], $accept_content = HttpClientAccept::HTML, [HttpClientOptions::TIMEOUT => $xrd_timeout]);
if ($curlResult->isSuccess()) {
$content = $curlResult->getBody();
if (!$content) {
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 {