]> git.mxchange.org Git - friendica.git/commitdiff
the config default parameter was deprecated
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 6 Nov 2022 12:21:05 +0000 (13:21 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 7 Nov 2022 10:19:33 +0000 (11:19 +0100)
src/Worker/CheckRelMeProfileLink.php

index 7943709d99729c322638fc4ba18c88eda1f0fd4e..99b43175053fede53a9679a97062ebd67ce6bb5e 100644 (file)
@@ -59,7 +59,7 @@ class CheckRelMeProfileLink
                $homepageUrlVerified = false;
                $owner = User::getOwnerDataById($uid);
                if (!empty($owner['homepage'])) {
-                       $xrd_timeout = DI::config()->get('system', 'xrd_timeout', 20);
+                       $xrd_timeout = DI::config()->get('system', 'xrd_timeout' ?? 20);
                        $curlResult = DI::httpClient()->get($owner['homepage'], $accept_content = HttpClientAccept::HTML, [HttpClientOptions::TIMEOUT => $xrd_timeout]);
                        if ($curlResult->isSuccess()) {
                                $content = $curlResult->getBody();