From 27eddfee2728371ec65d21447bcb967eec2ee540 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Sat, 22 Dec 2018 17:19:34 +0100 Subject: [PATCH] Fixed bug $curlResult is not an array --- src/Protocol/PortableContact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/PortableContact.php b/src/Protocol/PortableContact.php index de49a8d3ca..1ff47aeff7 100644 --- a/src/Protocol/PortableContact.php +++ b/src/Protocol/PortableContact.php @@ -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);