mirror of
https://github.com/friendica/friendica
synced 2025-04-25 12:30:11 +00:00
The curl result is an object, not an array
This commit is contained in:
parent
92214b8867
commit
c06f7ad11e
3 changed files with 4 additions and 4 deletions
|
@ -1317,7 +1317,7 @@ class Probe
|
|||
if ($curlResult->isTimeout()) {
|
||||
return false;
|
||||
}
|
||||
$pubkey = $curlResult['body'];
|
||||
$pubkey = $curlResult->getBody();
|
||||
}
|
||||
|
||||
$key = explode(".", $pubkey);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue