]> git.mxchange.org Git - friendica.git/commitdiff
Fixed bug
authorJeroen De Meerleer <me@jeroened.be>
Sat, 22 Dec 2018 16:19:34 +0000 (17:19 +0100)
committerJeroen De Meerleer <me@jeroened.be>
Sat, 22 Dec 2018 16:19:34 +0000 (17:19 +0100)
$curlResult is not an array

src/Protocol/PortableContact.php

index de49a8d3caba6932786dca9b50123ad511de2edf..1ff47aeff735e1ca9c4ee1b8f24d802cd313281f 100644 (file)
@@ -1778,7 +1778,7 @@ class PortableContact
                                $curlResult = Network::curl($url);
 
                                if ($curlResult->isSuccess()) {
-                                       $data = json_decode($curlResult["body"], true);
+                                       $data = json_decode($curlResult[->getBody(), true);
 
                                        if (!empty($data)) {
                                                self::discoverServer($data, 3);